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

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -