Try to see if it works without the CFQUERYPARAM. In my experience, ACCESS gets messed sometimes with those. Never could figure out why.
....................... Ben Nadel Web Developer Nylon Technology 6 West 14th Street New York, NY 10011 212.691.1134 212.691.3477 fax www.nylontechnology.com "Vote for Pedro" -----Original Message----- From: Adkins, Randy [mailto:[EMAIL PROTECTED] Sent: Friday, December 23, 2005 11:47 AM To: CF-Talk Subject: Access & CMFX 7 I have a simple Insert query that is throwing an error on CFMX 7. I have validated that all the form fields are there and properly set as needed. Here is the insert query: <CFQUERY NAME="qAddMemberInfo" DATASOURCE="#REQUEST.DSN#"> INSERT INTO MEMBERS ( FIRSTNAME, LASTNAME, COMPANYNAME, EMAILADDRESS, PHONENUMBER, USERNAME, PASSWORD, LOGINS, ACCTSTATUS ) VALUES ( <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.firstname#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.lastname#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.companyname#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.emailaddress#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.phonenumber#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.username#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_VARCHAR" VALUE="#form.password#">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_INTEGER" VALUE="0">, <CFQUERYPARAM CFSQLTYPE="CF_SQL_INTEGER" VALUE="#form.acctstatus#"> ) </CFQUERY> I have validated that all fields are specified correctly for the data types. The query runs just fine if I ran it in MS Access. However in CF7, it Indicates there is a syntax error in the INSERT query. The line that it references is this line: <CFQUERYPARAM CFSQLTYPE="CF_SQL_INTEGER" VALUE="#form.acctstatus#"> The value of the form variable is 1. Error Executing Database Query. Syntax error in INSERT INTO statement. Any ideas? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Find out how CFTicket can increase your company's customer support efficiency by 100% http://www.houseoffusion.com/banners/view.cfm?bannerid=49 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:227625 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54