I am trying to pass a variable from a form to a query. I am using the following code:
UPDATE TblPAQ3280Process SET TblPAQ3280Process.LaborTI1 = Now(), TblPAQ3280Process.CodeName = "PAQ3280", TblPAQ3280Process.Status = "Incoming Inspection", TblPAQ3280Process.JobNumber = "PAQ" & "Now,mm,dd,yy,"
WHERE (((TblPAQ3280Process.SerialNumber)="& [Forms]![frmInitialInspection]![txtSerialNumber] &"));
I am currently getting a data mismatch error. I tried experimaenting with changing the quote marks around
)="& [Forms]![frmInitialInspection]![txtSerialNumber] &"));
I either get a string error or a data mismatch error.
Any help would be appreciated
UPDATE TblPAQ3280Process SET TblPAQ3280Process.LaborTI1 = Now(), TblPAQ3280Process.CodeName = "PAQ3280", TblPAQ3280Process.Status = "Incoming Inspection", TblPAQ3280Process.JobNumber = "PAQ" & "Now,mm,dd,yy,"
WHERE (((TblPAQ3280Process.SerialNumber)="& [Forms]![frmInitialInspection]![txtSerialNumber] &"));
I am currently getting a data mismatch error. I tried experimaenting with changing the quote marks around
)="& [Forms]![frmInitialInspection]![txtSerialNumber] &"));
I either get a string error or a data mismatch error.
Any help would be appreciated