Connecting Tech Pros Worldwide Help | Site Map

new to access need help with forms

  #1  
Old November 13th, 2005, 04:03 AM
accessboyz
Guest
 
Posts: n/a
I have a control that calls a form and that form has a control that
calls a second form. how can I set it to close the first form when
the second is called
  #2  
Old November 13th, 2005, 04:03 AM
gj
Guest
 
Posts: n/a

re: new to access need help with forms


accessboyz wrote:
[color=blue]
> I have a control that calls a form and that form has a control that
> calls a second form. how can I set it to close the first form when
> the second is called[/color]

add the following to the code for the button on the first form AFTER
the command to open the second form

docmd.close me


Gavin
  #3  
Old November 13th, 2005, 04:03 AM
fredg
Guest
 
Posts: n/a

re: new to access need help with forms


On 19 Sep 2004 04:34:29 -0700, accessboyz wrote:
[color=blue]
> I have a control that calls a form and that form has a control that
> calls a second form. how can I set it to close the first form when
> the second is called[/color]

You wish to close the form that is opening the second form?

DoCmd.OpenForm "FormB"
DoCmd.Close acForm, Me.Name
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner need Microsoft access 2003 help with forms and searching ebernedo answers 5 June 13th, 2007 07:11 PM
Urgent - need help with logging anonymous and Active Dir users without login form pv answers 2 November 19th, 2005 11:44 AM
Need help with Subforms Susan Bricker answers 2 November 13th, 2005 10:28 AM
New to Access-Grouping in Form Question ChadDiesel answers 3 November 13th, 2005 09:24 AM