Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listbox to print a report 1

Status
Not open for further replies.

Leventcos21

Technical User
Oct 7, 2004
77
US
I have an unbound listbox that lists 6 different types of reports. The rowsource is tblReports.

How can I go about select a specific report from the list and have it go to that report?

Thank you,
 
As in (?):

[tt]DoCmd.OpenReport Me.lstReports, acViewPreview[/tt]
 
That I know how.
Code:
DoCmd.OpenReport Me.lstReports, acViewPreview

If the list has 6 reports displayed, I select row 3 "List employees" I want to print that specific report.
 
Does your list box have more than one column? What does:

MsgBox Me.NameOfListBox

Return? If it is not the name of the currently selected report, you can use the Column property to return the column that holds the name of the report. Columns start numbering from 0.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top