Is this a varchar field in the db? I think cfqueryparam could be of help
here, but I'm a bit confused as to exactly what you're trying to accomplish.
On 10/13/05, Scott Stewart <[EMAIL PROTECTED]> wrote:
>
> I'm trying to trap a null form field in an update query
>
> <cfif (IsDefined("form.Dropouts")) and (form.Dropouts is not "")>,Dropouts
> =
> #form.Dropouts#</cfif>
>
> This used to work, I first check to see if the field is defined, then if
> there's anything there. If not then don't even include the line in the
> update.
>
> BUT...
>
>
> What I'm getting is the blank field appearing in the update and it's
> causing
> an oracle error "[Oracle][ODBC][Ora]ORA-00936: missing expression "
> Because the query is trying to insert nothing into the field.
>
> Haaaalllpppp
>
> Thanks
>
> sas
>
> Scott A. Stewart
> Cold Fusion Developer
>
> GNSI
> 11820 Parklawn Dr.
> Rockville, MD
>
>
> ....over a thousand years ago, a blue faced Pict stepped on a bloated
> sheep
> carcass, and thus.. the pipes were born
>
> - the Scottish Rogues
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:220913
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