By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,650 Members | 812 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,650 IT Pros & Developers. It's quick & easy.

simple question

P: n/a
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)

Oct 23 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a

jo***********@gmail.com wrote:
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 VB.NET... you might want to try a .NET NG... but you'd have
to do something like

strSQL = "..."
rs.OpenRecordset(strSQL)
value=rs.fields("NameOfSumField")

Oct 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.