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

Easy, easy question

Status
Not open for further replies.

dankosaur

Programmer
Joined
Jun 17, 2005
Messages
2
Location
US
I have done a lot of mySQL stuff, but am new to access' jet SQL. There is something wrong with the following query, resulting in an "UPDATE syntax eror" statement... But it seems right (have I used access' date pounds wrong?)

update cal_dates set title = 'event 7', desc = 'Standard desc', date = #07/07/2007#, max_attend = 77 where c_id = 5

cal_dates is a table with additional fields not altered by this update query. Title, desc are strings, date is a date/time, max_attend and c_id are numbers.

I am working in php through odbc, if that has any impact on this. Thanks for your time!
 
desc and date are reserved words, so either don't use them (better option) or enclose them in [] (not as good option)



Regards

Frederico Fonseca
SysSoft Integrated Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top