Controlling Reports with list boxes

  • Thread starter Thread starter David
  • Start date Start date
D

David

Hello,

I have set up a form in Access2000(no VBA) which has a
list box that I can use to make a selection in the
subform based on country. Is there a way to use a list
box (or the existing list box) to control a subselection
in a report.

Thanks for your help,

DM
 
Hello,

I have set up a form in Access2000(no VBA) which has a
list box that I can use to make a selection in the
subform based on country. Is there a way to use a list
box (or the existing list box) to control a subselection
in a report.

Thanks for your help,

DM

Yes; base the Report on a Query referencing the form control, with a
criterion like

=Forms!nameofform!nameoflistbox

However this only works for single-select listboxes; if you want to
use a multiselect listbox you'll need some code.

John W. Vinson[MVP]
(no longer chatting for now)
 

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

Back
Top