View previous topic :: View next topic |
Author |
Message |
franke Master Poster
Joined: 26 Jun 2004 Posts: 161 Location: Indiana, USA
|
Posted: Fri Dec 28, 2007 2:57 pm Post subject: How to close a form from the report it opens |
|
|
How do I close an Access form from the report that it opens?
Right now the user closes the report and sees the form open still and has to close that one. _________________ --------------------------
Thanks for everything.
Last edited by franke on Fri Dec 28, 2007 3:10 pm; edited 1 time in total |
|
Back to top |
|
|
steveaustin84 New Member
Joined: 11 Dec 2007 Posts: 5 Location: Milan, Italy
|
Posted: Fri Dec 28, 2007 3:09 pm Post subject: |
|
|
You can do this when closing the report:
Code: | Private Sub Report_Close()
DoCmd.Close acForm, "NameOfForm"
End Sub |
|
|
Back to top |
|
|
franke Master Poster
Joined: 26 Jun 2004 Posts: 161 Location: Indiana, USA
|
Posted: Fri Dec 28, 2007 3:10 pm Post subject: |
|
|
Works like a charm.
Thanks so much!! |
|
Back to top |
|
|
|