Manufacturing Information Solutions Forum Index Manufacturing Information Solutions
Your Place for Support and Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to close a form from the report it opens

 
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access
View previous topic :: View next topic  
Author Message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Dec 28, 2007 2:57 pm    Post subject: How to close a form from the report it opens Reply with quote

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
View user's profile Send private message
steveaustin84
New Member


Joined: 11 Dec 2007
Posts: 5
Location: Milan, Italy

PostPosted: Fri Dec 28, 2007 3:09 pm    Post subject: Reply with quote

You can do this when closing the report:

Code:
Private Sub Report_Close()
     DoCmd.Close acForm, "NameOfForm"
End Sub
Back to top
View user's profile Send private message
franke
Master Poster


Joined: 26 Jun 2004
Posts: 161
Location: Indiana, USA

PostPosted: Fri Dec 28, 2007 3:10 pm    Post subject: Reply with quote

Works like a charm.

Thanks so much!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Manufacturing Information Solutions Forum Index -> Microsoft Access All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group