Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsOtherProgramming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old November 18th, 2006, 05:08 PM
kwp243234 kwp243234 is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2006
Posts: 1 kwp243234 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 43 sec
Reputation Power: 0
ASP VBScript , DW8 Recordset Problem

I'm trying to create a small shopping cart site using VBscript and ASP

I’ve run into an odd problem with the following SQL:

SELECT sum(dbo.product.prodprice)

FROM dbo.cart,dbo.product

WHERE dbo.cart.username='varUsername' AND dbo.cart.prodID=dbo.product.prodID AND dbo.cart.orderID=''

This SQL is being used to return a user(s) shopping cart total; now although this works when I click the test button under advanced query, i.e. it gives the total as expected. Once I’ve pressed OK, and select the rscarttotal recordset; I am given a lighting bolt icon without any name in the data binding pane.

I am unable to drag and drop it into the table; However if I remove the sum function it gives me the prodprice data field which I can drag However this isn’t any good for me in this situation because it only returns the individual prices and not the total price of the items in the shopping cart.

Can anyone assit, many thanks

kwp243234

Reply With Quote
  #2  
Old November 30th, 2006, 08:54 AM
degsy degsy is offline
Contributing User
ASP Free God 2nd Plane (6000 - 6499 posts)
 
Join Date: Aug 2005
Location: North East, UK
Posts: 6,191 degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level)degsy User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 3 Weeks 4 Days 19 h 41 m 52 sec
Reputation Power: 121
Try adding an Alias
Code:
sum(dbo.product.prodprice) as sumTotal
__________________
CyberTechHelp

Reply With Quote
Reply

Viewing: ASP Free ForumsOtherProgramming Help > ASP VBScript , DW8 Recordset Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway