Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update statement not working

Status
Not open for further replies.

rizunb

Programmer
Feb 27, 2003
63
CA
Hi People
I am running an update statement in access, but it not updating the table, its not giving me any error as well
here is the sql :

DoCmd.RunSQL ("update Employees set Firstname = '" & fname & "', Lastname = '" & lname & "', Title = '" & Title & "', workphone = '" & phone & "', Active = '" & Active & "', section = '" & Section & "' where employees.employeeid = " & empid & "")

This is a very simple sql statement. Its just simply doing nothing. Insert statements are working fine but updates are not. Does this have to do some thing with rst.update or rst.edit?
I am not using any of these.
Please guide me a little
Thanks in advance
 
There may be no new records to update
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top