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.

"post-text" itemprop = "text">

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

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -