I'm running into an odd behavior with CFQUERY (at least I think it is odd)

I have the following code (example)

<cfquery name="blahName" datasource="blah">
   SELECT blah
     FROM blah
   WHERE blah = 1
</cfquery>

<CFIF blahName.recordCount GT 0>
   12345
</CFIF>

if the query blahName returns no results, I thought i would still be able to
access blahName.recordCount....

Am I wrong on this, or is there something else I am overlooking?

Thanks
-Dave


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:332498
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to