Results 1 to 2 of 2

Thread: ADODB.Recordset

  1. #1

    Thread Starter
    Hyperactive Member wolfrose's Avatar
    Join Date
    Aug 2002
    Location
    Indiana
    Posts
    309

    ADODB.Recordset

    I'm using ADODB to connect to a database and using recordsets to get the data. The problem is, the recordsets have been changed in VB.NET. Can someone tell me what I should be using instead of:
    VB Code:
    1. Public db As ADODB.Connection
    2.     Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
    3.         Dim dbr1 As ADODB.Recordset
    4.         dbr1 = New ADODB.Recordset()
    5.         Dim SString As String
    6.         Dim Emails As String
    7.         Dim x As Int64
    8.         Connect()
    9.         SString = "SELECT Bill_Email_Address From Emails"
    10.         dbr1.Open(SString, db)
    11.         For x=0 To dbr1.RecordCount
    12.             If Not dbr1(x).Value Is System.DBNull.Value Then
    13.                 Emails = Emails + dbr1(x).Value
    14.             End If
    15.         Next

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    I hope this would help !(scroll down to the middle)

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