CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> Archive -> GotoCode Archive

 SQL

Print topic Send  topic

Author Message
michael
Posted: 02/18/2002, 1:32 AM

I try to calculate a total base on shoppingcart example, however I keep getting error. Here is my SQL statement. Could anyone tell the problem?

In Form property --> SQL I entered,

select sum(qtys*up) as total1 from ifq_detail where ifq_id="& GetParam("ifq_id")& "

I get the error message is:

Invalid SQL Query. Error:[TCX][MyODBC]you have an error in your SQL syntax near "ifq_id")&" at line 1

Henry Miller
Posted: 02/18/2002, 5:40 AM

May be ifq_id is a string and you should surround it with quotes

   


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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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