title: How to run a query from the VBA Editor window in Access?
body: <p>I would like to do something like this:</p>
  
  <pre><code>DoCmd.OpenQuery "select * from some_table;"
  </code></pre>
  
  <p>How would I do this?</p>
  
  <p>Please keep in mind I don't want to create a new query, save it, and run it. I just want to type the select statement in the VBA code and run it.</p>