Thanks Dave and Will. Robert O.
-----Original Message----- From: Dave Watts [mailto:[EMAIL PROTECTED] Sent: Thursday, February 22, 2007 12:33 PM To: CF-Talk Subject: RE: CFSEARCH > I have this basic Cfsearch for a page that searches our collections: > > <CFSEARCH NAME="SearchSnippets" > COLLECTION="databases" > TYPE="simple" > MAXROWS="20" > CRITERIA="#FORM.searchstring#"> > </CFIF> > > How do I insert code that will display a "your search > generated 0 results" to display? I know this seems a bit > easy, but I don't do much coding and less with Cfsearch. > > I tried <CFIF get.recordcount is 0> but am not sure it applies here. CFSEARCH returns a query object, so you should be able to look at SearchSnippets.RecordCount. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 The most significant release in over 10 years. Upgrade & see new features. http://www.adobe.com/products/coldfusion Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270496 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

