This query was working fine, with the arguments.case_id variable being 30026 (and the function it is in is set to receive the case_id as numeric. Bottom line is it IS numeric.
<cfquery datasource="#request.datasource#" name="getExpenseRecord"> select payment_mode from expense where case_id = <cfqueryparam cfsqltype="cf_sql_integer" value="#val(arguments.case_id)#"> </cfquery> Now all of a sudden I get this error unless I remove the <cfqueryparam> and do it without. So its not a big deal, I'm just curious as to what the hecks happening: "Error Executing Database Query. [Macromedia][SQLServer JDBC Driver]Value can not be converted to requested type. " Is this a bug? Brook D. logiforms.com ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF community. http://www.houseoffusion.com/banners/view.cfm?bannerid=38 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183314 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=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54