| re: Report, Crosstab Query and Parameters
Bryan wrote:[color=blue]
> I've been looking over this newsgroup, but I can't find an answer to
> my problem. I see that a few others have posted this issue over the
> years, but none of them got a response. I'll give it another shot.
>
> I have a report that is based on a crosstab query. The crosstab query
> is based off of another query, and that has a parameter in the where
> clause. Like this:
>
> WHERE e.elevationid = [Forms]![ElevationSelect]![elevationcode]
>
> If I run the sub-query alone, it prompts me for the parameter, then
> runs fine.
>
> If I run the crosstab query, it prompts me for the parameter, then
> runs fine.
>
> If I run the report, it shows me the form, lets me enter in the data
> for the parameter, then gives me an error saying:
>
> (-2147217904) No value given for one or more required parameters.
>
> I don't get it. If I use a normal query for the report rather than a
> crosstab, it works fine. When I switch to the crosstab query, kaboom.
>
> Can anyone help?!? Thanks in advance...[/color]
Not sure I've seen that exact symptom, but crosstabs insist that all
parameters be explicitly defined in the parameters dialog when in query
design view whereas other query types will usually evaluate parameters
on-the-fly. This includes parameters that are coming from queries providing
input to the crosstab.
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com |