Here's what I'm doing:

QUERY

<cfscript>
        if (isNumeric(getDataCards.dcardid)) {
                dcardid_null="no";
        } else {
                dcardid_null="yes";
        }
</cfscript>

And in the insert statement:

<cfqueryparam value="#getRecordData.dcardid#"
cfsqltype="CF_SQL_INTEGER" null="#dcardid_null#">

So, yeah, I'm using the null attribute, I just don't want to go
through the shenanigans to determine the value for that attribute.

Pete

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:204559
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

Reply via email to