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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Capture created PO number in code

Status
Not open for further replies.

dichetdi

Programmer
Aug 19, 2002
13
US
Hello,

Does anybody knows how to get the PO number that just got created/inserted? I ran the recorded vba code and it ran with no errors, but how do I know what's the PO number? I would like to put up a message box to show the created PO number that just got inserted.

Thank you.
 
The PONUMBER field is populated after you .Insert the header.
 
Yes, I was querying the header table but that's not the best way to get the PO Number when I have multiple users creating PO. That's why I was wondering if it's possible to capture the created PO number return when post.
 
Pay attention. The PONUMBER field is populated after you .Insert the header.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top