> > How to detect a null SQL field in colldfusion??? > > Thanks in advance. > > <cfif len(trim(fieldname)) gt 0> > the filed is not null > <cfelse> > the field is null > </cfif>
Uh, that tells you the length of the field. CF doesn't recognize NULL values, and it replaces them with zero-length strings. I don't think that you can determine from a CF recordset whether the database contains NULL values or empty strings. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ______________________________________________________________________ Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

