Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Modal Forms (A2000)

    Just something I wanted confirming really.

    I use quite alot of pop-up forms and always on_close, set the focus to where I need to on another form.

    I noticed with a Modal form, when closed, the focus returns to the previously active forms control whatever it may be.

    Is this true, it will save me coding if so ?

    Dave

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Modal Forms (A2000)

    Hi Dave,

    You are right. If you open a form that has Modal set to Yes, and then close it, the focus will return to the form and to the control that had the focus before, unless you have code to shift the focus elsewhere. The same holds if you open *any* form using DoCmd.OpenForm with the WindowMode argument set to acDialog.

    So you don't need code to set the focus back to the "original" form and control explicitly.

    Regards,
    Hans

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •