Connecting Tech Pros Worldwide Forums | Help | Site Map

new to access need help with forms

accessboyz
Guest
 
Posts: n/a
#1: Nov 13 '05
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

gj
Guest
 
Posts: n/a
#2: Nov 13 '05

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
fredg
Guest
 
Posts: n/a
#3: Nov 13 '05

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