Run A query from a Macro

S

stephen

Guys

New to this

Can any one tell me how to run a query from a macro
RunSQL allows only 255 character

Any ideas

Thanks in advance
 
V

Van T. Dinh

Check Access Help on the OpenQuery Macro action.

You can also use the RunCode Macro action to run a VBA function that uses
the DoCmd.RunSQL to execute your SQL String.

I presumed you are talking about an Action SQL String, not a Select SQL
String.

HTH
Van T. Dinh
MVP (Access)
 

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

Top