Results 1 to 3 of 3

Thread: Is This Correct??

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2002
    Location
    INDIA
    Posts
    169

    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

  2. #2
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    India
    Posts
    342
    ksm

  3. #3
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Yeah check the link .
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width