Open report from form

asu81

Registered User.
Local time
Today, 10:46
Joined
May 26, 2012
Messages
47
Hi!
I'm new to Access and have a question..

I have a form with several combo-boxes in which to choose parameters. Next to each combo-box I have an "OK" button with VBA code which opens a specific query with previous chosen value in related combo box as filtering parameter.

Each button opens a separate query.
So far so good.


Now, I want to view a report of the chosen query when hitting OK, instead of the query itself.

I haven't worked with reports before, so I'm unsure about how to proceed.

Can I simply create a related report for each query and then exchange "DoCmd.OpenQuery XXX" with "DoCmd.OpenReport YYY" in the form button VBA?

Thanks!
 

Users who are viewing this thread

Back
Top Bottom