J
jy836
I am trying to display a bunch of rows from a database in a DataGrid, and I
want to sort them by year. I decided to use the "WHERE (yearID BETWEEN ? And
?)" query in the OleDbDataAdapter to get only the rows from the database
that were between two different years (which are specified at run-time).
The problem I am having is with this line:
OleDbDataAdapter4.SelectCommand.Parameters("yearID").Value = [What should I
put here?]
Since I need two distinct numbers to use as parameters, how can I assign
them both to "yearID"? Thanks in advance.
Jay
want to sort them by year. I decided to use the "WHERE (yearID BETWEEN ? And
?)" query in the OleDbDataAdapter to get only the rows from the database
that were between two different years (which are specified at run-time).
The problem I am having is with this line:
OleDbDataAdapter4.SelectCommand.Parameters("yearID").Value = [What should I
put here?]
Since I need two distinct numbers to use as parameters, how can I assign
them both to "yearID"? Thanks in advance.
Jay