Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix SQL /.idc problem

Status
Not open for further replies.

davehill1974

Technical User
Oct 28, 2003
14
0
0
GB
Hi,
I have written an idc file to pull data from our database to the .htx page everything is returned to the .htx other than the count?? Has anyone had this issue? If so please help. Here is the code:

Datasource: serv
Template: mprc08.htx
SQLStatement:
+ SELECT st_description
+ FROM statcode
+ WHERE st_status_code = '%search_stat%';
SQLStatement:
+ SELECT cm_inv_name, TODAY dt_today
+ FROM custmaster, cust_group
+ WHERE cm_cust_id = gr_cust_id
+ AND cm_cust_id = '%cust_id%'
+ AND gr_user = '%cust_user%';
SQLStatement:
+ SELECT count(*) AS cnt
+ FROM jobsheet, cust_group
+ WHERE js_customer_id = '%cust_id%'
+ AND js_customer_id = gr_cust_id
+ AND gr_user = '%cust_user%'
+ AND js_curr_stat_code = '%search_stat%';

i am trying to get it to the .htx using <%cnt%>

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top