Passing Input in Bracket [] To a Variable?

M

mcl

I use brackets such as [describe input I need] in queries to ask for input.
Is there anyway to pass the input to a variable so I can use that input in
other queries or even in multiple queries in a macro?
 
G

Gina Whipp

I use a form and have the queries look at the field on the form. That way I
can run multiple queries, reports from one field on a form

HTH,
Gina Whipp
 
J

John Vinson

I use brackets such as [describe input I need] in queries to ask for input.
Is there anyway to pass the input to a variable so I can use that input in
other queries or even in multiple queries in a macro?

The simplest way, as Gina says, is to use a Form. Your criterion would
change to

[Forms]![NameOfTheForm]![NameOfTheControl]

and you could put a command button on the form to run the macro.

John W. Vinson[MVP]
 

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