CaiSupport
Technical User
Original Code
UPDATE CustomerService AS CS
INNER JOIN AR_95_UDF_ARInvoiceLines AS Inv
ON (CS.[Next Date]=Inv.Nextservicedate) AND ((CS.ID)=Inv.Scheduleid)
SET CS.[Previous Date] = CS.[Next Date], CS.[Next Date] = UpdateServiceDates(CS.[Next Date],CS.Interval,CS.Frequency);
Changed To add an additional File and now I get a syntax error
UPDATE CustomerService AS CS
INNER JOIN AR_95_UDF_ARInvoiceLines AS Inv
ON (CS.[Next Date]=Inv.Nextservicedate) AND ((CS.ID)=Inv.Scheduleid)
INNER JOIN ARN_InvHistoryHeader as Hst
On (Inv.InvoiceNumber = Hst.InvoiceNumber)
SET CS.[Previous Date] = CS.[Next Date], CS.[Next Date] = UpdateServiceDates(CS.[Next Date],CS.Interval,CS.Frequency);
This is the query I did to find the linkage I wanted.
INNER JOIN CustomerService ON (AR_95_UDF_ARInvoiceLines.Scheduleid = CustomerService.ID) AND (AR_95_UDF_ARInvoiceLines.Nextservicedate = CustomerService.[Next Date])) INNER JOIN ARN_InvHistoryHeader ON AR_95_UDF_ARInvoiceLines.InvoiceNumber = ARN_InvHistoryHeader.InvoiceNumber
UPDATE CustomerService AS CS
INNER JOIN AR_95_UDF_ARInvoiceLines AS Inv
ON (CS.[Next Date]=Inv.Nextservicedate) AND ((CS.ID)=Inv.Scheduleid)
SET CS.[Previous Date] = CS.[Next Date], CS.[Next Date] = UpdateServiceDates(CS.[Next Date],CS.Interval,CS.Frequency);
Changed To add an additional File and now I get a syntax error
UPDATE CustomerService AS CS
INNER JOIN AR_95_UDF_ARInvoiceLines AS Inv
ON (CS.[Next Date]=Inv.Nextservicedate) AND ((CS.ID)=Inv.Scheduleid)
INNER JOIN ARN_InvHistoryHeader as Hst
On (Inv.InvoiceNumber = Hst.InvoiceNumber)
SET CS.[Previous Date] = CS.[Next Date], CS.[Next Date] = UpdateServiceDates(CS.[Next Date],CS.Interval,CS.Frequency);
This is the query I did to find the linkage I wanted.
INNER JOIN CustomerService ON (AR_95_UDF_ARInvoiceLines.Scheduleid = CustomerService.ID) AND (AR_95_UDF_ARInvoiceLines.Nextservicedate = CustomerService.[Next Date])) INNER JOIN ARN_InvHistoryHeader ON AR_95_UDF_ARInvoiceLines.InvoiceNumber = ARN_InvHistoryHeader.InvoiceNumber