Hi all hope someone can help me with this I am totally stuck. Basically I am trying to filter a single table containing a mix of empty cells and cells with data in them. I have constructed an SQL statement to pass through an OleDBSelectCommand and a DataAdapter, which I have checked out many times and in Access and the Query builder so am pretty sure it should work.
The problem comes when I try to integrate it into my code. Testing of my code produces only the "Parameter *** has no default value." Error, the value of which is the name of the next empty parameter that I passed to the .fill method.
"
Essentially I am looking to create a function that can take a variable number of parameters (1-5) and filter the table for a row that matches these parameters exactly.
"
Initially I had hoped to simply use a SELECT statement that compares each parameter to each field (column1 = @param1) AND ...
but the NULL values didn't seem to mix and I couldnt find a way around it.
If this comparison can be done it would also solve the above problem.
I have been wrestling with this for 2 days now with no success, any help would be much appreciated.
(I am trying to do this in the data tier of my application.)
The problem comes when I try to integrate it into my code. Testing of my code produces only the "Parameter *** has no default value." Error, the value of which is the name of the next empty parameter that I passed to the .fill method.
"
Essentially I am looking to create a function that can take a variable number of parameters (1-5) and filter the table for a row that matches these parameters exactly.
"
Initially I had hoped to simply use a SELECT statement that compares each parameter to each field (column1 = @param1) AND ...
but the NULL values didn't seem to mix and I couldnt find a way around it.
If this comparison can be done it would also solve the above problem.
I have been wrestling with this for 2 days now with no success, any help would be much appreciated.
(I am trying to do this in the data tier of my application.)