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!

Error with Insert Into

Status
Not open for further replies.

peter11

Instructor
Joined
Mar 16, 2001
Messages
334
Location
US
What is wrong with this insert statement. I pasted the error below. I have used this statement format on other pages for a different table and it worked??

<CFQUERY DATASOURCE=&quot;academics&quot;>
INSERT INTO GuideVisits (category, Date, Hour, Minute, Meridian, Name)
VALUES('#itemmenu#', '#Date#', '#Hour#', '#Minute#', '#Meridian#', '#Name#')
</cfquery>

ERROR
ODBC Error Code = 37000 (Syntax error or access violation)

[Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.

The error occurred while processing an element with a general identifier of (CFQUERY), occupying document position (9:1) to (9:32).
 
Rename the field called &quot;Date&quot;. Try &quot;Dateline&quot; or something. Anything but &quot;Date&quot;!

John Hoarty
jhoarty@quickestore.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top