Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How To Test for Form Opened as acDialog? (a2k (9.0.6926) SP-3 Jet 4.0 SP-8)

    I have a form with Border Style = Sizable, Modal = No

    Sometimes I open a form as follows:

    DoCmd.OpenForm strDocName, acNormal, , , , acDialog, Me.Name

    When I'm inside the open from, how can I in code, test to see that the form was opened with acDialog as opposed to acWindowNormal (default)?

    Thanks, John

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

    Re: How To Test for Form Opened as acDialog? (a2k (9.0.6926) SP-3 Jet 4.0

    I don't see a form property that can be used to test this. You could use a global Boolean variable that you set to True if you open the form with acDialog, and to False otherwise.

Posting Permissions

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