I use

<cfif Len(qQuery.field) EQ 0>

This will only work for fields that will not contain blanks since it will
generate the same result if it is blank or NULL.

I hope there is a better solution.

Russel

> -----Original Message-----
> From: Thomas Chiverton [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 05, 2001 9:48 AM
> To: CF-Talk
> Subject: Checking for NULL
>
>
> How do I compare a field for a NULL value ?
> <cfif qQuery.field is NULL> ?
>
> Regards,
>
> Thomas Chiverton
> Intranet Architect
> 01565 757 909
> The web is the borderless embodiment of every abstraction
>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.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

Reply via email to