E
Eric Stephens
Here's my situation: I have a table, a form, a query, and a report.
Here's what should happen: when I open the report, there is a macro that
opens the form, which is based on the table. The form allows the user to
select the parameter value for the query (using a drop-down box). The report
is based on the query, which must have the value selected from the form in
order to run. Once the quey runs, the report displays the resulting data
(I've actually gotten this to work before).
Here's what is happening: once I click OK in the form (which initiates a sub
procedure to open the report as acPreview), the action stops. When I click
cancel (the other button in the form), I get the "Function Access Can't Find"
message box. When I click OK to that, I'm prompted to enter a parameter
value--the value that should have been supplied by the selection in the form.
What's going on here? Have I created some kind of strange loop? I am VERY
new to VBA programming so, if you are able to respond, please keep that in
mind.
Thanks much!
Here's what should happen: when I open the report, there is a macro that
opens the form, which is based on the table. The form allows the user to
select the parameter value for the query (using a drop-down box). The report
is based on the query, which must have the value selected from the form in
order to run. Once the quey runs, the report displays the resulting data
(I've actually gotten this to work before).
Here's what is happening: once I click OK in the form (which initiates a sub
procedure to open the report as acPreview), the action stops. When I click
cancel (the other button in the form), I get the "Function Access Can't Find"
message box. When I click OK to that, I'm prompted to enter a parameter
value--the value that should have been supplied by the selection in the form.
What's going on here? Have I created some kind of strange loop? I am VERY
new to VBA programming so, if you are able to respond, please keep that in
mind.
Thanks much!