Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Other Forums
 MS Access
 question in update statement

Author  Topic 

lsy
Yak Posting Veteran

57 Posts

Posted - 2005-09-30 : 03:25:23
i'm using the ms accesss database which data manipulate by Visual c++.. i try to execute a sql statement, in visual c++ stated a syntax error in the sql statement, but if i manually write in ms access is success to retrieve data...
my statement as...
"UPDATE table SET Password = 'fvyewv1yg' where EmpNo = 'a123'"

pls advice...

rrb
SQLTeam Poet Laureate

1479 Posts

Posted - 2005-10-12 : 19:54:45
doesn't appear to be anything wrong, but access can be funny about field and table names. Try
update [table] set [password]='fvyewv1yg' where [EmpNo] = 'a123'


--
I hope that when I die someone will say of me "That guy sure owed me a lot of money"
Go to Top of Page
   

- Advertisement -