Converting

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

I know we could convert Macros to VBA in access, but is there way that we could convert queries to VBA or MS SQL
THank
Augustus
 
Augustus,

Open your query and change view to SQL (View > SQL view). Access will have
the equivalent SQL statement ready for you! You can copy it to use in your
VBA code.
If it's a Selet query then it can be used either to define a recordset to
perform operations on, or as the recordsource for a form or report.
If it's an action query (Append, Update, Make Table, Delete) it can be run
directly in a DoCmd.RunSQL statement to perform the action.

HTH,
Nikos

augustus said:
Hi,

I know we could convert Macros to VBA in access, but is there way that we
could convert queries to VBA or MS SQL?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top