Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I create a combo order number without code?

Status
Not open for further replies.

marcondes

Technical User
Feb 20, 2002
23
US
I need to generate order numbers with a combination of StateID+VendorID+Number of sales by that vendor.
For example: StateID=55, VendorID 112, number of transactions to date (including this current one) by the vendor=73... my order number would be 55112-73.
I'm new with access and don't know code.
 
You could use a query on the table(s) and have a field in the query as follows:

SerialNumber:TableName!StateID & TableName!VendorID & "-" & (PreviousOrders+ 1)


to get the number of previous orders use the Dcount Function Sandy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top