I am going to assume that the sold field is a numeric field (although that
got me nowhere in my last post <g>) .Remove the single ticks from around the
1 and it should work.
Like so
<cfquery name="" datasource="gunlist" dbtype="ODBC">
UPDATE guns
set sold = 1
WHERE (id = '#id#')</cfquery>
jon
----- Original Message -----
From: "Joshua Tipton" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Sunday, February 11, 2001 6:45 PM
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