Results 1 to 3 of 3
  1. #1
    kattatonic1 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Location
    Toronto, Canada
    Posts
    77

    Question Open Form without Focus

    I have found tips on the interwebs to open a form without focus by cheating with a tiny text box and putting it first on the tab order. The tip sheets all seem to be pre-Access 2010 though. Does anyone know if there is an official Access way to do this yet?

    Happy Monday, folks!

    Kay in Toronto


    Sunny but still chilly

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    You should be able to set focus on the form itself. You could place the following in the forms On Load event and the form's On Current Event.

    Me.SetFocus

    If you want the form to open and not be visible you could open the form from another form and then use the Me.Focus in the original form. There is also acHidden and the Minimized properties but this will not work unless you are using the old school "Overlapping Windows" settings.

  3. #3
    kattatonic1 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Jul 2013
    Location
    Toronto, Canada
    Posts
    77
    It wouldn't execute as focus to the form itself rather than a specific object. It was following the tab order.

    However, while I was playing with the SetFocus in the form's On Current event, it occured to me that I have an information button on each form where I would do this. So [Information button].SetFocus works great! Thanks, ItsMe. Always happy to be lead to the water.

    Kay

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

Similar Threads

  1. Replies: 1
    Last Post: 03-02-2014, 01:31 PM
  2. Replies: 1
    Last Post: 05-03-2012, 02:25 PM
  3. Replies: 1
    Last Post: 02-29-2012, 09:38 AM
  4. Replies: 11
    Last Post: 01-26-2012, 01:22 PM
  5. multi forms open & focus issue
    By tfulmer in forum Programming
    Replies: 1
    Last Post: 08-23-2011, 04:00 PM

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