new to access need help with forms

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • accessboyz

    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
  • gj

    #2
    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

    Comment

    • fredg

      #3
      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.

      Comment

      Working...