acc - How to use parameterized queries in vb.net? -
How to use parameterized query in vb.net? Because I always wanted to create a program that could read an MS Access database and display results based on your query.
Make the desired query using question marks instead of your criteria
dim sql = " * Where do the names * =? By the students?
Then create an OleDbCommand object and set the appropriate value (command text and so on) then add the parameter to the command object. In the end, execute it as to what type of ExecuteReader you need.
Comments
Post a Comment