CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> Archive -> GotoCode Archive

 How to avoid grid form if no records to display ?

Print topic Send  topic

Author Message
Pinchas
Posted: 10/07/2002, 11:58 AM

CC2 question
Is there a way to avoid from displaying a grid form if there are no records to display in the recordset?
Nicole
Posted: 10/08/2002, 7:10 AM

Pinchas,
To find if the returned recordset is empty you should execute the query in the Open event of the form, and depending on it hide the form. Here is PHP code example:
//execute query:
$db->query($sSQL.$sWhere.$sOrder);
$next_record = $db->next_record();
if (!$next_record)
{
$tpl->SetVar("Form<form_name>", "");
return;
}

Note, it is available in the template version.

   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.