|
-
Apr 6th, 2003, 12:49 PM
#1
Thread Starter
Hyperactive Member
Jet and .NET
I have this code:
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
Dim cmd As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\temp\Export.mdb;"
Dim dc As New OleDb.OleDbConnection(cmd)
Dim da As New OleDb.OleDbDataAdapter("SELECT * FROM MdseFile", cmd)
Dim ds As New DataSet()
dc.Open()
da.Fill(ds, "MdseFile")
dc.Close()
dc.Dispose()
da.Dispose()
'bind to grid
DataGrid1.DataSource = ds.Tables("ItemMast")
End Sub
and have a datagrid on my form.
This runs (at least no running error) but does not fill out the datagrid and display any data. There is data in the file MDSEFILE.
What am I doing wrong?
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
|