Auto Number

mithani

Registered User.
Local time
Tomorrow, 06:06
Joined
May 11, 2007
Messages
291
Hello,

I have purchase order and I want everytime I make purchase order, system should give me last purchase order number + 1 automatically. How can I do?

Thanks

Mithani
 
Use DMAX:

if as a controlsource of a textbox:
=DMAX("[YourPurchaseOrderNumberField]", "YourTableNameHere")

If in code

Me.YourTextBox = DMAX("[YourPurchaseOrderNumberField]", "YourTableNameHere")
 
Bob, appreciate your support. thanks

mithani
 
Bob, appreciate your support. thanks

mithani

Glad to help when I can. I still have a lot to learn as well, but when I do know something (or THINK I know something) I post.

By the way, out of curiosity, where are you located?
 
thanks bob.

I was in Dubai for 12 years and now in Sydney Australia.
 
I was curious as I find it very cool that this forum has people from all over.
 

Users who are viewing this thread

Back
Top Bottom