I have an application that is working well except for one thing. The submitted data will not insert into the Acess table. I have checked all of the field names, I have tried other applications running on this same DB and they work, and I have checked each field in the table to ensure that there are in special requirements before inserting the data. Here is the query:
<CFQUERY NAME="addexpense" DATASOURCE="WMRA">
INSERT INTO travel(req_name, req_email, organization, SPM_ID, bus_reason, num_travel, name_travel, from, to, overnight, num_nights, travel_cost, lodging_cost, meal_cost, meeting_cost, entertainment_cost, other_cost, alternate, approve, rstatus)
VALUES('#req_name#', '#req_email#', '#organization#', '#SPM_ID#', '#bus_reason#', '#num_travel#', '#name_travel#', '#from#', '#to#', '#overnight#', '#num_nights#', '#travel_cost#', '#lodging_cost#', '#meal_cost#', '#meeting_cost#', '#entertainment_cost#', '#other_cost#', '#alternate#', 'no', 'pending')
</CFQUERY>
Here is the error I keep getting
Error Occurred While Processing Request
Error Diagnostic Information
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 (10:1) to (10:45).
Date/Time: 08/28/03 14:44:29
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address: 136.151.237.33
HTTP Referrer:
Please help!!!
<CFQUERY NAME="addexpense" DATASOURCE="WMRA">
INSERT INTO travel(req_name, req_email, organization, SPM_ID, bus_reason, num_travel, name_travel, from, to, overnight, num_nights, travel_cost, lodging_cost, meal_cost, meeting_cost, entertainment_cost, other_cost, alternate, approve, rstatus)
VALUES('#req_name#', '#req_email#', '#organization#', '#SPM_ID#', '#bus_reason#', '#num_travel#', '#name_travel#', '#from#', '#to#', '#overnight#', '#num_nights#', '#travel_cost#', '#lodging_cost#', '#meal_cost#', '#meeting_cost#', '#entertainment_cost#', '#other_cost#', '#alternate#', 'no', 'pending')
</CFQUERY>
Here is the error I keep getting
Error Occurred While Processing Request
Error Diagnostic Information
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 (10:1) to (10:45).
Date/Time: 08/28/03 14:44:29
Browser: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)
Remote Address: 136.151.237.33
HTTP Referrer:
Please help!!!