Take away '' from #ID# when it is a number you cant surround it in quotes.
-----Original Message-----
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 11, 2001 6:46 PM
To: CF-Talk
Subject: Not letting me update
The id is being passed yet I am reciving the error below. Can anyone tell
me why. My database id is set to auto number.
Joshua Tipton
<a href="delete.cfm?id=#id#">Delete</a>
<cfquery name="" datasource="gunlist" dbtype="ODBC">
UPDATE guns
set sold = '1'
WHERE (id = '#id#')</cfquery>
Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria
expression.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists