How do I display different sets of records based on a selection?

B

Bipbop

I have a dropdown box (but I can change it if need be), and want a particular
form or report to open based solely on the selection made from it.

I am creating a training database, which works fine up until this point.
The dropdown boxx contains a list of the courses we supply. When a course is
selected a want to be able to print out a page displaying the contents of the
course. Is this possible? I have been searching for a solution for months
now.
 
A

Allen Browne

Add a command button to your report.
In the button's Click event procedure, use the OpenReport action.
Use the WhereCondition to limit the report to only those courses in the
combo.

There's an example here:
Print the record in the form
at:
http://allenbrowne.com/casu-15.html
 
D

Designing-Systems.com

hi,

Use the ON CHANGE event to triggger a query that selects records based on
the item selected in the drop down box.

Regards,
 
D

Duane Hookom

I generally avoid using the ON CHANGE event since it is triggered with every
key stroke. It would be better to use the After Update or a command button.
 

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