needhelpplz2
New member
- Local time
- Today, 14:52
- Joined
- Jan 16, 2014
- Messages
- 8
Hello all,
UPDATE TblInvoice SET TblInvoice.VCTBatch = DLookUp("[VCT Year]","[VCTBatch]","[Number] =" & 1) & "-" & DLookUp("[Increment]","[VCTBatch]","[Number] =" & 1)
WHERE (TblInvoice.RecipientID IN (SELECT TOP 20 TblInvoice.RecipientID FROM TblInvoice WHERE TblInvoice.VCTBatch IS NULL AND TblInvoice.Isclosed = True AND (Dlookup("[Payment Method Look up Code]", "[TblSupplier]", "ID =" & tblinvoice.SupplierID) = "EFT"));
For some reason i'm getting an syntax operator error "missing" or something near the end, where it says "ID = " & tblinvoice.SupplierID. Would appreciate any help I could get, thanks!
UPDATE TblInvoice SET TblInvoice.VCTBatch = DLookUp("[VCT Year]","[VCTBatch]","[Number] =" & 1) & "-" & DLookUp("[Increment]","[VCTBatch]","[Number] =" & 1)
WHERE (TblInvoice.RecipientID IN (SELECT TOP 20 TblInvoice.RecipientID FROM TblInvoice WHERE TblInvoice.VCTBatch IS NULL AND TblInvoice.Isclosed = True AND (Dlookup("[Payment Method Look up Code]", "[TblSupplier]", "ID =" & tblinvoice.SupplierID) = "EFT"));
For some reason i'm getting an syntax operator error "missing" or something near the end, where it says "ID = " & tblinvoice.SupplierID. Would appreciate any help I could get, thanks!