That's exactly why it won't insert - because there is no value your SQL
output will look like this (which is invalid):

insert into smlc_acr (no_acres)
values ()

Try this instead (not sure it will work with MySQL):

insert into smlc_acr (no_acres)
  values (
<cfif Len(Trim(no_acres))>
 <cfqueryparam cfsqltype="cf_sql_integer" value="#no_acres#">
<cfelse>
 NULL
</cfif>)


HTH

Dominic

-- 
Blog it up: http://fusion.dominicwatson.co.uk


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:303065
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to