CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 Simple Query - I think - Sum

Print topic Send  topic

Author Message
Gab
Posted: 03/20/2003, 10:32 AM

SELECT DISTINCTROW Sum([Shipment].[Weight])
FROM [Shipment]
WHERE [Shipment].[CustomerName]= Connection.ToSQL(CustomerName.SQLText, CustomerName.DataType)

How do I execute that query and store the results into a variable ?

I am using ASP 3.0
and CCS

Thanks in advanced
DaveRexel
Posted: 03/20/2003, 10:49 AM

Hello Gab,
The following article should help you

http://www.rexdesign.com/ccs/kb.php?event_id=15&categor...2&language_id=7

Greetings
Dave
Gab
Posted: 03/20/2003, 9:52 PM

Thank you very much, it helped me find the answer.

In addition to that link, I found the following

http://www.gotocode.com/art.asp?art_id=234&FormArticle_Page=2#Article

In the end, this is the code I used.

Dim weightTotals : weightTotals = CCDLookUp("SUM(Weight)","Shipment","CustomerName=" & Connection.ToSQL(Customer.CustomerName.SQLText,Customer.CustomerName.DataType) & _
"AND Billed = 'FALSE' AND BillNow = 'TRUE'",DBArusa)


Again, I am using ASP 3.0 , on CCS 2b4

   


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.