On Wed, 30 Mar 2005 16:15:53 -0400, Phillip Duba <[EMAIL PROTECTED]> wrote:
> Ok, I've been pulling my hair out for two straight days now on this. I have a 
> numeric field that I am populating with the results of a previous query. The 
> column in this query could return a null value. If I set the CFQUERYPARAM 
> null option to "Yes" it doesn't throw an error but everything is passed as a 
> null. Am I missing something here? Maybe I've been looking at it too long. 
> Thanks for any help,
> 

If you specify "Yes," then CF will ignore any value in the "value"
attribute. If it's conditional, simply do this:

<cfqueryparam value="#myNumber#" cfsqltype="cf_sql_numeric"
null="#yesNoFormat(not len(trim(myNumber)))#" />

make sure to keep the "not" in the expression, as you actually want
the opposite of what the len(trim()) call returns.

Regards,
Dave.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:200820
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

Reply via email to