|
-
Dec 1st, 2002, 03:21 AM
#1
Thread Starter
Addicted Member
Is This Correct??
Hi,
Will Somebody please check this code ?? It is not working but I dont see any problem.
Dim str As String
Dim rst As New ADODB.Recordset
str = "Select Sum(Total) as tot from Purchase where Chalan='" & txtchalan.Text & "'"
rst.Open str, Connection.cn, adOpenKeyset, adLockOptimistic
If rst.RecordCount > 0 Then
txtamount = tot
End if
rst.close
set rst=nothing
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|