Hi Guys,
I have a Syntax error with the last bit of this code:
CurrentDb.Execute "UPDATE tblstaffCodes SET Discipline = '" & Forms!FormJobDescriptions!FormStaffLookup!Discipline & "' WHERE PayNumber = '" & Forms!FormJobDescriptions!FormStaffLookup!Text1 & "' and WHERE AdditPayNumber = 0"
I tried the ampersand and just "where" but no success :-(
AdditPayNumber is numeric
I have a Syntax error with the last bit of this code:
CurrentDb.Execute "UPDATE tblstaffCodes SET Discipline = '" & Forms!FormJobDescriptions!FormStaffLookup!Discipline & "' WHERE PayNumber = '" & Forms!FormJobDescriptions!FormStaffLookup!Text1 & "' and WHERE AdditPayNumber = 0"
I tried the ampersand and just "where" but no success :-(
AdditPayNumber is numeric