Results 1 to 4 of 4
  1. #1
    rivereridanus is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    71

    modal property not working

    I have a button on a form that opens a form called itemqueryform2 with this code:


    Private Sub lookupitemsbutton_Click()
    DoCmd.OpenForm "itemqueryform2", , , , , acDialog

    I want it to open in a Dialog window, with the modal property set to No so that my user can switch easily between the dialog and the form she is using underneath.

    In the properties panel, I selected Popup YES and Modal NO, but my form still does not allow users to click out of it without closing the form.

    Any suggestions?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Generally speaking an argument specified in OpenForm will override the form's settings (like the edit settings). I suspect that's happening with acDialog, so try dropping that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    rivereridanus is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2011
    Posts
    71
    That fixed it. Thank you!!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. passing variable from modal form to main form
    By crowegreg in forum Forms
    Replies: 2
    Last Post: 06-03-2011, 05:34 PM
  2. Replies: 1
    Last Post: 03-29-2011, 11:05 AM
  3. Replies: 1
    Last Post: 02-17-2011, 06:23 AM
  4. Replies: 6
    Last Post: 02-10-2011, 09:58 AM
  5. Create Property
    By RAPSR in forum Programming
    Replies: 2
    Last Post: 10-12-2010, 12:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums