A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

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



 
 
Thread Tools Display Modes
  #1  
Old December 9th, 2009, 03:26 AM posted to microsoft.public.access.queries
hshepardjr
external usenet poster
 
Posts: 7
Default Can I create a query using the results of a Macro?

If so, how?
  #2  
Old December 9th, 2009, 10:08 AM posted to microsoft.public.access.queries
[email protected]
external usenet poster
 
Posts: 744
Default Can I create a query using the results of a Macro?

On Dec 8, 9:26*pm, hshepardjr
wrote:
If so, how?


Never tried. What's the macro do? If it's just data manipulation,
then probably...
  #3  
Old December 9th, 2009, 02:45 PM posted to microsoft.public.access.queries
Jerry Whittle
external usenet poster
 
Posts: 4,732
Default Can I create a query using the results of a Macro?

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.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"hshepardjr" wrote:

If so, how?

  #4  
Old December 9th, 2009, 04:52 PM posted to microsoft.public.access.queries
hshepardjr
external usenet poster
 
Posts: 7
Default Can I create a query using the results of a Macro?

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,


"Jerry Whittle" wrote:

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.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.


"hshepardjr" wrote:

If so, how?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.