What type of field is 'sold'? If it is a character field (nvarchar etc)
then you need the single quotes around it.. but if it's any of the Integer
fields, or Bit etc, then you don't want the quotes.
> From: "Joshua Tipton" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Sun, 11 Feb 2001 18:45:38 -0500
> To: CF-Talk <[EMAIL PROTECTED]>
> 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