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!

Extract Order Status and Order History - VB

Status
Not open for further replies.

rorye

Programmer
Mar 9, 2005
14
ZA
I am trying to extract Order History and Order Status using Visual Basic 6 and ACCPAC.xapisession.

The Order History is to extract the history of the items bought by a customer for a six month period. I therefore would pass in their Customer number and the relevant periods and then want to get back all current and historical transactions per item they have purchased.

The order status is to just extract that information for current orders to show the client how their order is progressing through (i.e. shipped / back order / printed etc.)

Can anyone give me some same code.

Thanks in advance
 
Use either the Sales History Details (OESHDT) or the Posting Journal Details (OEAUDD) table. Your code depends on your output method.

Jay Converse
IT Director
Systemlink, Inc.
 
Thanks for that.

Do you have any sample code for something like this?
 
OESHDT.Browse "CUSTOMER = " & myCust & " AND YR = " & myYear & " AND PERIOD = " & mPeriod,True
Do While OESHDT.Fetch

{your output method}

Loop


Jay Converse
IT Director
Systemlink, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top