Synatax Error

D

DS

Can't find the Error!!
CurrentDb.Execute "UPDATE
[;DATABASE=C:\ProServ\Utility\DataSafe.mdb;].tblEmps, " & _
"SET tblEmps.EmpFirstName = " & Chr(34) &
Forms!frmBSEmployees!TxtFirstName & Chr(34) & "," & _
"tblEmps.EmpLastName = " & Chr(34) &
Forms!frmBSEmployees!TxtLastName & Chr(34) & ", " & _
"tblEmps.EmpActive = Forms!frmBSEmployees!ChkActive " & _
"WHERE tblEmps.EmpID = Forms!frmBSEmployees!TxtEmployeeID;"

Any help appreciated
Thanks
DS
 
K

Ken Snell \(MVP\)

Get rid of the comma after tblEmps in your second line.

(You don't say what the error is, but I'm guessing....)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top