CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeCharge.Discussion

 Select count problem

Print topic Send  topic

Author Message
Xavier
Posted: 06/18/2002, 4:10 AM

Hello CC experts,
I've a search and a grid form in the same page.
Grid shows selected records by creation date and company code.
I put a second grid form in. It's just a one-field (label) grid,
and in its SQL form properties I checked "use SQL string" and wrote this:
select count(*) as total_number_of_records from table_name;

In this way I always get the total number of not-null records in database.
I'd like to have the correct number of records selected, but once "use SQL
string" is selected
it's impossible to set some input parameters in Input form properties,
except the variable used for the select count.

Can any gentle people help me please?

Thanks



Ken Hardwick
Posted: 06/18/2002, 11:54 AM

You can add your input parameters in your custom SQL...

select count(*) as total_number_of_records from table_name
where
field1 = ' & getparm("xxx") & "'

Note..I left the last " off on purpose...

Ken Hardwick
Norman,Ok

Xavier <nobody@nowhere.invalid> wrote in message
news:aen4fi$nro$1@news.codecharge.com...
> Hello CC experts,
> I've a search and a grid form in the same page.
> Grid shows selected records by creation date and company code.
> I put a second grid form in. It's just a one-field (label) grid,
> and in its SQL form properties I checked "use SQL string" and wrote this:
> select count(*) as total_number_of_records from table_name;
>
> In this way I always get the total number of not-null records in database.
> I'd like to have the correct number of records selected, but once "use SQL
> string" is selected
> it's impossible to set some input parameters in Input form properties,
> except the variable used for the select count.
>
> Can any gentle people help me please?
>
> Thanks
>
>
>
>


   


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.