W
WonderingWhy
I am trying to build a set of nested queries where a
parameter is passed. I have four saved queries.
1) Query1 is a SELECT of certain records from Query2. Note
Query1 itself doesn't require any parameters.
2) Query2 is a complicate JOIN of two other queries (#3
and #4.) It also doesn't directly need any parameters.
3) Query3 is a DISTINCT SELECT on an existing table based
on a date. This date is the parameter, [Enter Date], the
user provides at runtime.
4) Query4 is a fairly simple SELECT which also does not
require any parameters.
As you can see, there is only one parameter which is only
required in one query. But when I run Query1 (thus calling
the other nested ones), I get prompted for the parameter,
[Enter Date], three times when it should only be once.
I have tried not declaring the parameter, [Enter Date]. I
have tried only delaring it in Query3. I have tried
declaring the parameter in All the queries. And maybe a
couple of other ways.
It seems no matter how/if I declare the parameter, I get
prompted three times to enter the date. I have done this
kind of thing before but I haven't seen this problem
before. Does anyone have a clue what I am doing wrong?
Anyone with an idea of how to get the prompting down to
only one time?
TIA,
WonderingWhy
parameter is passed. I have four saved queries.
1) Query1 is a SELECT of certain records from Query2. Note
Query1 itself doesn't require any parameters.
2) Query2 is a complicate JOIN of two other queries (#3
and #4.) It also doesn't directly need any parameters.
3) Query3 is a DISTINCT SELECT on an existing table based
on a date. This date is the parameter, [Enter Date], the
user provides at runtime.
4) Query4 is a fairly simple SELECT which also does not
require any parameters.
As you can see, there is only one parameter which is only
required in one query. But when I run Query1 (thus calling
the other nested ones), I get prompted for the parameter,
[Enter Date], three times when it should only be once.
I have tried not declaring the parameter, [Enter Date]. I
have tried only delaring it in Query3. I have tried
declaring the parameter in All the queries. And maybe a
couple of other ways.
It seems no matter how/if I declare the parameter, I get
prompted three times to enter the date. I have done this
kind of thing before but I haven't seen this problem
before. Does anyone have a clue what I am doing wrong?
Anyone with an idea of how to get the prompting down to
only one time?
TIA,
WonderingWhy