Results 1 to 6 of 6
  1. #1
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496

    visible form but not have focus when true

    Is there a way to have a form become visible but do so in the background?

    currently I load a pop up form if a recordset changes count and sets the visibility of the form to true - false if the user closes the popup

    the problem with forms("fromName").visible = true is that the form becomes the focus - I just want to have it become visible in the background so the user doesn't lose focus on the current form they have in front of them

    any suggestion?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,973
    What happens if the top form is opened as Modal?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    What happens if the top form is opened as Modal?
    I only have one form open as modal and it's the one form where the popup form is asked not to become visible so it doesn't affect the top form.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,973
    I just did a test. Opened a form as popup and modal. Then programmatically opened another form. Second form stays behind popup. Set second form as not visible then visible and popup keeps focus. Has to be both popup and modal.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by June7 View Post
    I just did a test. Opened a form as popup and modal. Then programmatically opened another form. Second form stays behind popup. Set second form as not visible then visible and popup keeps focus. Has to be both popup and modal.
    Just to be clear - it's the popup form I want in the background. It is what becomes visible/invisible but without taking focus from whatever the form a user has in front of them...

    I thought modal locks it to priority so they can't move to another form.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,973
    'Popup' forms by nature must open on top of already open forms.

    Modal means can't click to other form but focus seems to go to nevernever land when another form is programmatically manipulated.

    Do some testing. What do you experience?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 16
    Last Post: 03-26-2015, 08:35 PM
  2. Replies: 4
    Last Post: 11-04-2014, 07:35 PM
  3. Replies: 8
    Last Post: 10-06-2014, 03:02 PM
  4. Replies: 4
    Last Post: 05-29-2013, 01:29 AM
  5. Replies: 2
    Last Post: 01-06-2011, 04:38 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