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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

simple update prob...

Status
Not open for further replies.

mjonson

Technical User
Mar 9, 2004
128
GB
hi,

i want to update the field 'dateassess' in table 'tbl_risk'
with the value 01/10/2004 where 'tbl_risk'.'siteid' = 2

UPDATE tbl_risk.dateassess = '01/10/2004'
WHERE (tbl_risk.siteid) = 2;

can you tell me where i am goin wrong?
 
You need
Code:
UPDATE tbl_risk 

SET tbl_risk.dateassess = #01/10/2004#

WHERE (tbl_risk.siteid) = 2;
Assuming that "dateassess" is a datetime field type. If it is a text field then leave the quotes as you had them.
 

mjonson,

UPDATE tbl_risk SET dateassess = #01/10/2004#
WHERE (tbl_risk.siteid) = 2;

MOrdja
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top