Cheryl, there has to be a problem with the name of the parameter.
To help you track it down, open the Immediate Window (Ctrl+G), and enter:
? CurrentDb.QueryDefs("Query1").Paramters(0).Name
substituting your query name for Query1.
Look at what comes out. It will be the same as the title of the parameter
dialog.
Now insert a question mark and space in front of that. For example, if it
says:
[Forms]![TheForm]![Textbox]
you will have:
? [Forms]![TheForm]![Textbox]
Move the cursor to the end, and press Enter.
Does this give you an error?
Can you see why Access can't find it?
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Reply to group, rather than allenbrowne at mvps dot org.
Cheryl Floyd said:
I have triple and quadruple-checked the spelling of the all these pieces of
the process. I'm still seeing these little pop-up boxes multiple times
before
it will open the report. It's the same whether I use the unbound form for
the
query to read from, or put the parameter prompt right in the query itself.
What other ideas do you have?
Allen Browne said:
If TheForm is open (not in design view), and has a text box named Textbox
on
it, and the subreport's query has criteria of:
[Forms]![TheForm]![Textbox]
then it should be able to find it.
If it is popping up a parameter box, it indicates Access can't find it.
There could be several reasons, but the most likely is that the names
don't
match exactly (e.g. there's a space in the name.)