A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Closing one form when opening second form



 
 
Thread Tools Display Modes
  #1  
Old August 29th, 2008, 05:01 PM posted to microsoft.public.access.forms
the bp Guy
external usenet poster
 
Posts: 13
Default Closing one form when opening second form

I am putting command button on form 1 to open form 2 want to close form 1
when form 2 opens. I know I can do this in the properties of one or the other
(form1) or(form2) or command button

Thanks for your help

  #2  
Old August 29th, 2008, 05:14 PM posted to microsoft.public.access.forms
fredg
external usenet poster
 
Posts: 4,386
Default Closing one form when opening second form

On Fri, 29 Aug 2008 09:01:01 -0700, the bp Guy wrote:

I am putting command button on form 1 to open form 2 want to close form 1
when form 2 opens. I know I can do this in the properties of one or the other
(form1) or(form2) or command button

Thanks for your help


Code that command button on Form1:
DoCmd.OpenForm "Form2"
DoCmd.Close acForm, Me.Name
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 07:40 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.