Hi,
cmd = New OleDbCommand("SELECT s.Title + '. ' + s.FirstName + ' ' + s.LastName AS Staff, th.Location1, th.Location2, th.Date FROM ToolHire th INNER JOIN Staff s ON th.StaffID = s.StaffID WHERE th.ToolID = '" & ToolCode & "';", cn)
dr = cmd.ExecuteReader
DGrid1.DataSource = dr
This is what I tried but it doesnt work. Is there a way this can be done?
Or would I have to do something like DGrid1.col(0) = dr(0)?
Thank You.
cmd = New OleDbCommand("SELECT s.Title + '. ' + s.FirstName + ' ' + s.LastName AS Staff, th.Location1, th.Location2, th.Date FROM ToolHire th INNER JOIN Staff s ON th.StaffID = s.StaffID WHERE th.ToolID = '" & ToolCode & "';", cn)
dr = cmd.ExecuteReader
DGrid1.DataSource = dr
This is what I tried but it doesnt work. Is there a way this can be done?
Or would I have to do something like DGrid1.col(0) = dr(0)?
Thank You.