Jeff,
I have a form that the user enters requested information in order to open a
report. The user requests the report based upon the PdThrough field e.g.
12/31/2005, 12/31/2004 etc. From reading various posts I have done the
following.
I have a report based on a crosstab query. In the design view I selected
Query, Parameters and entered the following information –
[Forms]![frmDialogPdMemberType]![ValidUntil] Date/Time. I also put the same
information [Forms]![frmDialogPdMemberType]![ValidUntil] in the Criteria
field (PdThrough) of the query underlying the crosstab query.
I am able to retrieve my report but several “boxes†pop up. The referenced
form that request user information, and several others generated by Access.
Now, I don’t know how to get rid of the extra parameter requests.
Thank you for your help.
Anne
Jeff Boyce said:
Anne
Not sure what you mean by "dialog boxes" -- are you referring to the
parameter prompts in a parameterized query (or possibly the way Access
prompts you for a value if you set a report's control to a field that isn't
in its list of fields)?
Another approach is to use an Access form as a "report order" form, and put
controls on it that will hold your selection criteria. You'd then need to
modify your queries to point at the form, rather than use "fill-in" prompts.
The new parameter would look something like:
Forms!YourOrderFormName!TheControlWithTheParameter
(suitably modified to match up with your form and control names)
--
Regards
Jeff Boyce
<Office/Access MVP>
I have used dialog boxes with reports based on queries. However, I have
created a report using a crosstab query and I do not know how to
accomplish
this. I want the user to be able to select the paid through date before
running the report.