mithani Registered User. Local time Today, 22:10 Joined May 11, 2007 Messages 291 Jun 22, 2007 #1 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
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
boblarson Smeghead Local time Today, 03:10 Joined Jan 12, 2001 Messages 32,040 Jun 22, 2007 #2 Use DMAX: if as a controlsource of a textbox: =DMAX("[YourPurchaseOrderNumberField]", "YourTableNameHere") If in code Me.YourTextBox = DMAX("[YourPurchaseOrderNumberField]", "YourTableNameHere")
Use DMAX: if as a controlsource of a textbox: =DMAX("[YourPurchaseOrderNumberField]", "YourTableNameHere") If in code Me.YourTextBox = DMAX("[YourPurchaseOrderNumberField]", "YourTableNameHere")
mithani Registered User. Local time Today, 22:10 Joined May 11, 2007 Messages 291 Jun 22, 2007 #3 Bob, appreciate your support. thanks mithani
boblarson Smeghead Local time Today, 03:10 Joined Jan 12, 2001 Messages 32,040 Jun 22, 2007 #4 mithani said: Bob, appreciate your support. thanks mithani Click to expand... 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?
mithani said: Bob, appreciate your support. thanks mithani Click to expand... 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?
mithani Registered User. Local time Today, 22:10 Joined May 11, 2007 Messages 291 Jun 22, 2007 #5 thanks bob. I was in Dubai for 12 years and now in Sydney Australia.
boblarson Smeghead Local time Today, 03:10 Joined Jan 12, 2001 Messages 32,040 Jun 22, 2007 #6 I was curious as I find it very cool that this forum has people from all over.