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

 Return zero record

Print topic Send  topic

Author Message
cklee
Posted: 02/10/2002, 6:10 AM

Is there a way to replace error message when the sql clause return zero record from the where expression. I have a sql statement as
select avg(pbc) as AvPBC from collect where pbc <>0 and month="Jan"
For some months in my database, PBC are zero for all days in the month. When CC executes, it will return a error as "Microsoft VBScript runtime (0x800A000D)
Type mismatch: 'fldavpveh'"
Nicole
Posted: 02/11/2002, 1:20 AM

Hello,
check "avpveh" field type in db and CC. They should match.
Try to run the query in db query analyzer. Is it successful? If yes, then the field type on CC form is incorrect.
cklee
Posted: 02/11/2002, 5:52 AM

The question is for the 12 months of the year, there may be one or two months that the daily pveh are zero i.e. no transaction. The sql select statement will return null for that month and no average value return. In what way, I can control CC to assign a "0" to that month while the remaining months have the values. I use ASP.

   


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

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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