One Prompt for same Parameterin a macro

G

Guest

I have several queries that all prompt for the same paramter, Year, which is
not going to vary within one run of the macro. When I run the macro, it
prompts me for the Year for every query where that parameter is needed. Is
there a way I can have the macro prompt for the parameter once in the
beginning and then just use that value for the year parameter for all the
queries that use it?
 
S

Steve Schapel

Denise,

On the form from which the running of the macro is triggered, put an
unbound textbox for the entry of the criteria. And then, in your
queries, in the place of the parameter prompts which you have now, put a
criteria like this...
[Forms]![NameOfYourForm]![NameOfYourTextbox]
 

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