DoCmd.Maximize prevents form from persisting

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

    DoCmd.Maximize prevents form from persisting

    A process presents frmSecond for user entry; user closes when done.

    Code for opening the form is
    DoCmd.OpenForm "frmSecond" , acNormal, , strWHERE, , acDialog

    Problem: frmSecond does not remain on the screen. Instead, it shows again
    after the process calling it has completed.

    Can anyone tell me what might be causing it to "hide" itself until the
    process completes?

    Thanks for any help.

    L Mehl


  • Salad

    #2
    Re: DoCmd.Maximize prevents form from persisting

    L Mehl wrote:
    [color=blue]
    > A process presents frmSecond for user entry; user closes when done.
    >
    > Code for opening the form is
    > DoCmd.OpenForm "frmSecond" , acNormal, , strWHERE, , acDialog
    >
    > Problem: frmSecond does not remain on the screen. Instead, it shows again
    > after the process calling it has completed.
    >
    > Can anyone tell me what might be causing it to "hide" itself until the
    > process completes?
    >
    > Thanks for any help.
    >
    > L Mehl
    >
    >[/color]
    What is your code in frmSecond in the OnOpen or OnActivate event? By
    calling frmSecond with acDialog, all execution after the OpenForm
    statement is stopped until the form frmSeconds is closed or made invisible.

    Comment

    Working...