Results 1 to 5 of 5
  1. #1
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101

    Question How to set focus to top of a form?

    I have created a form with a tab control and a label above it.

    I've set the settings such that, when I open the database, the form gets opened first.

    However, when the form is opened, the cursor is on the second field of the first page of the form and the view includes only the tab control such that the label above the tab control is not at all visible. How can I rectify this?

    Please help! Thanks!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    put an empty text box on top, make it transparent and the cursor can sit there , hanging.

  3. #3
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    That did not help.

    Moreover, even if I scroll up to display the label above the tab control, when I switch to the next page of the tab, the focus again shifts to the tab control leaving the label above hidden.

  4. #4
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    UPDATE: On changing the tab order and making the new text box as the first item, the problem was solved for the first page. But when I switch pages on the tab control, the problem persists. Tab order does not help here because the new text box does not belong to the tab control but to the background form.

  5. #5
    Bradex is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Sep 2011
    Posts
    101
    I solved it by using this in the code of the tab control: ControlAtTopOfForm.SetFocus

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

Similar Threads

  1. Set focus to another form
    By aytee111 in forum Programming
    Replies: 19
    Last Post: 11-01-2015, 01:40 PM
  2. Set focus in sub form
    By Derrick T. Davidson in forum Forms
    Replies: 7
    Last Post: 08-15-2014, 08:18 AM
  3. Set focus in other form?!!!
    By zareh in forum Forms
    Replies: 4
    Last Post: 02-27-2014, 02:33 AM
  4. Replies: 1
    Last Post: 02-29-2012, 09:38 AM
  5. Replies: 11
    Last Post: 01-26-2012, 01:22 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