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

SQL Question

Status
Not open for further replies.

SmileeTiger

Programmer
Mar 13, 2000
200
US
I am trying to update a time field in my access db using PHP but for some reason it doesn't like the formatting (I assume). Any ideas?

The error message I am getting looks like this:

UPDATE CourseTimeTable SET MondayTime = '08:30:00 AM', TuesdayTime = '10:00:00 AM', WednesdayTime = ' ', ThursdayTime = ' ', FridayTime = ' ' WHERE CourseTimeTable.CourseID = 'CS0433'
Warning: SQL error: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression., SQL state 22005 in SQLExecDirect in c:\inetpub\ on line 508


Cory
 
Your sql statement look ok...do you set the field type to datetime? ------------------
Freedom is a Right
 
Yeah they are of the form date/time with the format Medium Time so an example would be 9:00 am I donno what's up with it.

Cory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top