antonyx
Arsenal Supporter
- Local time
- Today, 16:04
- Joined
- Jan 7, 2005
- Messages
- 556
hi.. i want to set a number field (fkPaidID) to 1
this syntax is wrong.. ive looked at a few examples..
could someone explain what is wrong with this statement
http://www.londonheathrowcars.com/here.jpg
basically im trying to set the fkpaidid to 1 when the invoice status is set to paid
this syntax is wrong.. ive looked at a few examples..
could someone explain what is wrong with this statement
Code:
CurrentDb.Execute "UPDATE tblJob SET [tblJob].[fkPaidID] = 1 WHERE tblJobInvoice.fkInvoiceRef = '" & Me.txtInvoiceRef & "' AND tblJobInvoice.fkJobRef = tblJob.JobRef;"
http://www.londonheathrowcars.com/here.jpg
basically im trying to set the fkpaidid to 1 when the invoice status is set to paid