Connecting Tech Pros Worldwide Help | Site Map

new to access need help with forms

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 13th, 2005, 03:03 AM
accessboyz
Guest
 
Posts: n/a
Default new to access need help with forms

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, 03:03 AM
gj
Guest
 
Posts: n/a
Default 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, 03:03 AM
fredg
Guest
 
Posts: n/a
Default 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.
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,840 network members.