Can I create a query using the results of a Macro?

J

Jerry Whittle

The web interface cuts off the Subject line after about 50 characters so your
question looked like:

Can I create a query using the results of ....

Please keep the subject very short and expound upon it in the message area.

The big question is: What are the results of a macro? It almost has to be
something like a query running inside the macro to have results. Please
explain what those results are and how they became results.
 
H

hshepardjr

The Macro displays query results based on selected criteria in a form. The
query results displayed are one of three queries. For example:

Macro criteria: If [Forms]![Pick]![Segment] = WIS, OpenQuery: "WIS Query"
If [Forms]![Pick]![Segment] = Count, OpenQuery: "Count Query"
If [Forms]![Pick]![Segment] = Summer, OpenQuery: "Summer Query"

I believe this can also be done through an If else statement in VBA but I'm
not sure how to create a query to call the recordsource in VBA.

Any help you can provide would be appreciated.

Thanks,
 

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