Database Management
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesDatabase Management

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 4th, 2003, 05:27 PM
bobburg bobburg is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Winnipeg,Manitoba /Canada
Posts: 1 bobburg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Access Query

I am looking for an answer about a MS Access 2002 query. The query looks into a table called Blanket PO Table that contains a field [PONUM] . The PO field contains various PO numbers which are text. The format on the PO number is B00000. Most of the PO's start with a B. I have set up a query that selects the last B po number in the table and adds 1 to create the NextPONum. My select statement in my query is written as follows.

SELECT Max("B" & Format(Right(Trim([PONUM]),5)+1,"00000")) AS NextPoNum
FROM [Blanket PO Table]
GROUP BY Left([PONUM],1)
HAVING (((Left([PONUM],1))="B"));

The statement works quite well in Access 2000 but Access 2002 has a problem with the format and comes back with an error "Undefined function 'Format' in expression. Does anyone know what the problem is?

Bob

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesDatabase Management > Access Query


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway
Stay green...Green IT