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

Automatically closing forms 1

Status
Not open for further replies.

seth0101

Technical User
Dec 6, 2004
5
US
I have a command button that prints a sales report from my sales form. After I click on the command button to print is there a way to automatically close the form after you click on the button?
 
seth0101
In the Open event for your report, put
Code:
DoCmd.Close acForm, "YourFormName"

Tom
 
Both these posts were worked and were valuable
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top