Results 1 to 2 of 2

Thread: help me in datagrid

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2003
    Posts
    23

    help me in datagrid

    I using adodb to connect to access database. Then I want to display the data inside database to datagrid by using coding. Is this possible? How the way?

    I post the code. This code was similar with vb6.

    Dim db As New ADODB.Connection()
    Dim rs As ADODB.Recordset

    db.Open("Provider=Microsoft.Jet.OLEDB.4.0; Data Source= _ c:\attendence.mdb")
    rs = db.Execute("Select * From logtime")

    txttime.Text = rs.Fields("Time").Value
    txtdate.Text = rs.Fields("Date").Value

  2. #2
    Registered User
    Join Date
    Nov 2002
    Location
    Växjö, Sweden
    Posts
    314
    Do you have to use adodb?

    Because the best tip is to use ADO.NET instead if your populating a datagrid.

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