title: Assigning a Variable to the SELECT Statement query
body: <p>is there a way to assign a variable in CompanyName And AccountNo? can anyone help me. =)</p>
  
  <pre><code>      Dim con As SqlConnection = New SqlConnection("Data Source=PC11-PC\kim;Initial Catalog=Acounting;User ID=sa;Password=123")
      Dim cmd As SqlCommand = New SqlCommand("Select CompanyName, AccountNo From Company Inner Join Coa ON Company.CompanyID = Coa.CompanyID", con)
  </code></pre>