Check you're passing in the correct values for the right columns. Are you trying to insert an empty string into a numeric type column?
Ade -----Original Message----- From: Torrent Girl [mailto:[EMAIL PROTECTED] Sent: 25 June 2005 00:55 To: CF-Newbie Subject: RE: Need help - deadline 5pm My problem is that I paramed them all but I get an error on the insert >I'm not real sure if this is what your asking, but here's a quick try at >an answer... > >***Form Page*** > ><form name="testForm" method="Post"> ><input type="text" name="foo"> ><input type="submit" value="Submit"> ></form> > >***Processing Page*** > ><cfparam name="form.foo" default="0"> >This will create form.foo ONLY if it does not exists. >If it does exists, the value of "foo" will be what was submitted >from the original form page, EVEN if it is null. > >To change the value, use ><cfif form.foo eq ""> ><cfset form.foo = 0> ></cfif> > >However it may be easier to change it in the SQL with > >(guessing MSSQL Server?) > >Insert into >... >IsNull(#form.foo#,0), >... > ><cfoutput> >#form.foo# ></cfoutput> -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.323 / Virus Database: 267.8.1/28 - Release Date: 24/06/2005 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:15:1225 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
