I have a Union query I want to use, but it needs to accept a parameter. I want to store the query in my access database and pass the parameter to it. I don't know how to do that. How should I write it in access what kind of OleDb command should I use?
Example query: SELECT * FROM tblOrderDetails WHERE ORDERID = ?
Example query: SELECT * FROM tblOrderDetails WHERE ORDERID = ?