automate entering parameter value

J

JR

I have an append query that requires the definition of
two "parameters" as it executes.

The problem is that each time I run it I have to manually
enter the two parameters. There are 20 different
combinations and so the query has to be executed 20
separate times.

Is there a way to automate the process?

The table it writes to is laid out as follows

Item ID | Alpha-Numeric
Location | Alpha
Posture* | Alpha
Phase* | Alpha
Rate | Number

*Posture and Phase are the columns that must be manually
entered as parameters when a pop-up prompt asks for a
parameter. The manual entry of that parameter is what I
want to automate. Entering the parameter pop-up populates
the Posture and Phase columns with the value entered.

Thanks,
JR
 
K

Ken Snell [MVP]

Use a form to hold the criteria for the query. Put textboxes on the form for
each of the criteria. Put a command button on the form to run the query.

In the query, change the parameter to
[Forms]![FormName]![TextBoxName]

Keep the form open while you run the query.
 

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