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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Making form/dialogue box dissappear when user selects from list box

Status
Not open for further replies.
Feb 19, 2005
47
0
0
GB
I have a form which I have made into a report. On the form is a list box containing the names of all of the reports on the system. The user selects a report from this list and chooses view. How can I make the dialogue box dissappear when the report is loaded?
 
It'd be something like this:

Code:
DoCmd.OpenReport "Report Name"
[Forms]![frmSelectReport].Visible = False

Hope this helps!

-------------------------
Just call me Captain Awesome.
 
How are ya GoldenFireTiger . . . . .
Code:
[blue]DoCmd.Close acForm, "YourFormName"[/blue]

Calvin.gif
See Ya! . . . . . .
 
Grande: thanks for that! Much appreciated!


TheAceman1: I'm fine thanks, yourself? Thanks for the code! would that close the form when a report was viewed?
 
GoldenFireTiger said:
[blue]would that close the form when a report was viewed?[/blue]
[purple]Use it just before the line that opens the report in your code![/purple]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top