|
-
Jan 24th, 2003, 06:17 AM
#1
Thread Starter
Junior Member
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
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
|