title: Passing parameter to query for Access database
body: <p>I am using following code and trying to get data by given parameters.  I donot know how to pass the parameter value to my query.</p>
  
  <pre class="lang-vb prettyprint-override"><code>Dim con As New OleDb.OleDbConnection
      Dim ds As New DataSet
      Dim da As OleDb.OleDbDataAdapter
      Dim sql As String
  
  con.ConnectionString = "
                   PROVIDER=Microsoft.Jet.OLEDB.4.0;
                   Data Source = D:\.Net Programs\DB Experiments\AddressBook.mdb"
  
          con.Open()
          sql = "SELECT * FROM tblContacts where Name=? and City=?"
          da = New OleDb.OleDbDataAdapter(sql, con)
          da.Fill(ds, "AddressBook")
          con.Close()
  </code></pre>