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

Adding Table and Changing code

Status
Not open for further replies.

CaiSupport

Technical User
Nov 1, 2005
18
US
We had someone help us write this code and now they are gone and the client wants changes. Currently we update the Access database (Customerservice) by matching with a Mas90 table. Everything was fine, but we were calculating the next date based on what was the last next date in access, they now want the next date calculated based on Invoice date. Original code query
UPDATE CustomerService INNER JOIN AR_95_UDF_ARInvoiceLines ON ([CustomerService].[Next Date]=[AR_95_UDF_ARInvoiceLines].[Nextservicedate]) AND (([CustomerService].[ID])=[AR_95_UDF_ARInvoiceLines].[Scheduleid]) SET CustomerService.[Previous Date] = [CustomerService].[Next Date], CustomerService.[Next Date] = UpdateServiceDates([CustomerService].[Next Date],[CustomerService].[Interval],[CustomerService].[Frequency]);
I need to match the AR_95_UDF_ARInvoiceLines.InvoiceNumber with ARN_InvHistoryHeader.InvoiceNumber so that the UpdateServicedates uses Invoice Date.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top