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!

INSERT INTO error with Time Field

Status
Not open for further replies.

pwinters

Programmer
Sep 12, 2002
34
I have a website form where a user will enter various data that will update an Access database through the mssql code in my page. I am receiving an error : "Syntax error in INSERT INTO statement", which is related to the 2 Date/Time fields I have in the form.

My guess is that the problem is due to Access wanting to update both the Date & Time(MM/DD/YYYY HH:MM:SS), but I only need a Time (HH:MM:SS) inserted in these fields.

Is there a way to format these fields in the Insert Into SQL Statement that would prevent this error and allow the user to update the database with their data?

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top