dbTalk Databases Forums  

sum value in sql statement

comp.databases comp.databases


Discuss sum value in sql statement in the comp.databases forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
jonathandrott@gmail.com
 
Posts: n/a

Default sum value in sql statement - 10-23-2006 , 01:33 PM






How do i get the value of TotalQty from the sql string to
lblCouponNum.text



Dim sqlstr As String
sqlstr = "select sum (NumberofCoupons) as TotalQty from
tmpInputData"
Dim sqlAdapter As Odbc.OdbcDataAdapter = New
Odbc.OdbcDataAdapter(sqlstr, connDB)


Reply With Quote
  #2  
Old   
Ed Prochak
 
Posts: n/a

Default Re: sum value in sql statement - 10-24-2006 , 07:08 AM







jonathandrott (AT) gmail (DOT) com wrote:
Quote:
How do i get the value of TotalQty from the sql string to
lblCouponNum.text



Dim sqlstr As String
sqlstr = "select sum (NumberofCoupons) as TotalQty from
tmpInputData"
Dim sqlAdapter As Odbc.OdbcDataAdapter = New
Odbc.OdbcDataAdapter(sqlstr, connDB)
Looks like this is not a SQL question, but a host language question. Is
that VB? then look for a VB discussion group.
Ed



Reply With Quote
Reply




Thread Tools
Display Modes

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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.