displaying reports via list boxes or combo boxes

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Please i need help with a problem i am having i have created a list box the
displays three report.My aim to to click on each form displayed on the list
box to open a report already created. How can i do this because at the
moment, when i click on the individual forms, they display the same report
which is wrong.Please what have i done wrong.I need help

winnie.
 
Hi,
I'm not understanding your request.
You are talking about reports and forms. Do you have a listbox with report
names or form names? Do you want to open reports or forms? If you have report
names in a listbox and you want to open these then you can use code like this
on the on click or after update event of the combobox:

DoCmd.OpenReport Me!lbxSelectReport, acViewPreview

lbxSelectReports would be the name of the listbox which holds the report
names.
HTH
Good luck
 
freakazeud said:
Hi,
I'm not understanding your request.
You are talking about reports and forms. Do you have a listbox with report
names or form names? Do you want to open reports or forms? If you have report
names in a listbox and you want to open these then you can use code like this
on the on click or after update event of the combobox:

DoCmd.OpenReport Me!lbxSelectReport, acViewPreview

lbxSelectReports would be the name of the listbox which holds the report
names.
HTH
Good luck

-- Thank you very much, i will try it out but i really ment clicking on the three different reports on the list box to display the individual report. I will also try using the combo box but if you know the solution for the listbox then that will be great.
Thanks once more.
winnie.
 
Thanks once more it worked.

freakazeud said:
Hi,
I'm not understanding your request.
You are talking about reports and forms. Do you have a listbox with report
names or form names? Do you want to open reports or forms? If you have report
names in a listbox and you want to open these then you can use code like this
on the on click or after update event of the combobox:

DoCmd.OpenReport Me!lbxSelectReport, acViewPreview

lbxSelectReports would be the name of the listbox which holds the report
names.
HTH
Good luck
 

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

Similar Threads

access report 0
Combo Box on Report 10
Two combo box for a report 2
Categorize Reports 2
Access Access Report Works on One Machine but not Another 3
combo box or list box 3
List box for reports 1
Access MS access forms list box problems 1

Back
Top