B
bill
Dim Con = New OleDb.OleDbConnection("provider=microsoft.jet.oledb.4.0;" &
"data source=c:\_Archive\Documentation - Projects\Hardware Tracking -
2008\IT_Assets.mdb")
Dim dataAdapter As OleDb.OleDbDataAdapter
Dim assCmd As New OleDb.OleDbCommand("SELECT * from tblAssets where
asset_tag = @fn", Con)
assCmd.Parameters.Add(New OleDb.OleDbParameter("@fn",
OleDb.OleDbType.VarChar, 30)).Value = Me.cboAsset.Text
Dim dataAdapter As New OleDb.OleDbDataAdapter(assCmd, Con)
Dim DT As New DataTable
DataAdapter.Fill(DT)
DataAdapter.Dispose()
'I'm hoping that this recordset will populate the grid but nothing happens?
Me.DataGridView1.DataSource = DT
"data source=c:\_Archive\Documentation - Projects\Hardware Tracking -
2008\IT_Assets.mdb")
Dim dataAdapter As OleDb.OleDbDataAdapter
Dim assCmd As New OleDb.OleDbCommand("SELECT * from tblAssets where
asset_tag = @fn", Con)
assCmd.Parameters.Add(New OleDb.OleDbParameter("@fn",
OleDb.OleDbType.VarChar, 30)).Value = Me.cboAsset.Text
Dim dataAdapter As New OleDb.OleDbDataAdapter(assCmd, Con)
Dim DT As New DataTable
DataAdapter.Fill(DT)
DataAdapter.Dispose()
'I'm hoping that this recordset will populate the grid but nothing happens?
Me.DataGridView1.DataSource = DT