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

 oddball access query in cc need help

Print topic Send  topic

Author Message
Inboy
Posted: 01/29/2002, 7:53 AM

Anyone ever seen anything like this?

SELECT ProductID,ProductName,ReorderLevel,LeadTime sum (UnitsReceived -UnitsSold -UnitsShrinkage) as stock
FROM products group by ProductID
WHERE ProductName="'&Request.Querystring("search")&"' AND stock>0

Tried to translate it from an access query. What am I doing wrong?
Chris S
Posted: 01/29/2002, 8:14 AM

Try this:
SELECT ProductID,ProductName,ReorderLevel,LeadTime, sum (UnitsReceived -UnitsSold -UnitsShrinkage) as stock
FROM products
WHERE ProductName="'&Request.Querystring("search")&"' AND stock>0
group by ProductID, ProductName, ReorderLevel, LeadTime



Chris
Posted: 01/29/2002, 9:48 AM

Just noticed something try this instead:

SELECT ProductID,ProductName,ReorderLevel,LeadTime, sum(UnitsReceived -UnitsSold -UnitsShrinkage) as stock
FROM products
WHERE ProductName='" & Request.Querystring("search")& "' AND stock>0
group by ProductID,ProductName,ReorderLevel,LeadTime





   


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.