先谢谢了!!!!!!!!
Dim conStr As String
Dim conn As OleDbConnection
Dim da As New OleDbDataAdapter
Dim ds As New DataSet
Dim comm As OleDbCommand
Dim comStr As String
conStr = "provider=microsoft.jet.oledb.4.0;data source=" & Server.MapPath("book\book.mdb")
conn = New OleDbConnection(conStr)
Try
comStr = "select * from guestbook"
comm = New OleDbCommand(comStr, conn)
da.SelectCommand = comm
conn.Open()
da.Fill(ds, "myinfo")
Catch ex As Exception
If Not ds.Tables Is Nothing Then
DataGrid1.DataSource = ds
DataGrid1.DataBind()
conn.Close()
End If
End Try