I'm searching a Access DB through a windows form. It's pretty simple but it's not returning anything if I don't fill in both fields. Here's my code.
OleDbDataAdapter1.SelectCommand.Parameters("Shift").Value = shiftTextBox.Text
OleDbDataAdapter1.SelectCommand.Parameters("Equipment").Value = equipmentTextBox.Text
DsReport1.Clear()
OleDbDataAdapter1.Fill(DsReport1)
I have the ? 's in the critera in the Query Builder.
I'm just filling a DataGrid at the moment.
OleDbDataAdapter1.SelectCommand.Parameters("Shift").Value = shiftTextBox.Text
OleDbDataAdapter1.SelectCommand.Parameters("Equipment").Value = equipmentTextBox.Text
DsReport1.Clear()
OleDbDataAdapter1.Fill(DsReport1)
I have the ? 's in the critera in the Query Builder.
I'm just filling a DataGrid at the moment.