Hi there,
From what I can see, you're having a couple of problems.
1. You're coding a normal SQL statement, yet you mark it as a sproc
2. You're adding parameters but you're not using any code to fill those params (e.g. I'd expect something like an output param)
3. You're using ExecuteNonQuery. This is usually used for UPDATE, DELETE statements, etc.
If I were you, I'd use a normal SQL Select statement (like you have now) and then use ExecuteReader to get a
OledbDataReader.
If you look at the OledbDataReader help page, you'll get a good example on how to retrieve values from the DataReader.
Cheers,
Imar
---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.