Reports and input params.

B

Bob

Hi,
I have an app that I'm adding reports to.
The button that opens the report, chages the InPutParameters
so that the stored proc can pull the data.

My question is this. When the user closes the report, the prompt
to save is displayed. How can I chage the params on the report
when opening it, then either save it, or not save it so that the user
does not get the prompt every time.

I'd tried using DoCmd.Save acReport
but can't seem to get this working.

thanks in advance,
bob.
 
S

Sylvain Lafontaine

The best way is not the change the InputParameters and instead of using
constanst, use references to controls on a form or public/global variables
on a module, something in the line of:

@IdRoute int = Forms!d_Rapports!ComboIdRoute, ....
 
B

Bob

Thanks Sylvain!
You've made my problem go away.
I really appreciate the reply and the solution.
Bob.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top