Results 1 to 5 of 5
  1. #1
    rwahdan1978 is offline Advanced Beginner
    Windows 11 Access 2016
    Join Date
    Jun 2024
    Posts
    57

    disable set focus on form load

    Hi,

    When my form is loaded, I have setfocus on my first textbox and I don't like that. Is there a way to disable that? I tried to make the focus on lable but it is not allowed!
    Click image for larger version. 

Name:	Untitled.png 
Views:	6 
Size:	15.2 KB 
ID:	51908



  2. #2
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    Clumbsy but effective is to create a non-visible textbox named txtDummy and set focus to that.

  3. #3
    rwahdan1978 is offline Advanced Beginner
    Windows 11 Access 2016
    Join Date
    Jun 2024
    Posts
    57
    Quote Originally Posted by davegri View Post
    Clumbsy but effective is to create a non-visible textbox named txtDummy and set focus to that.
    It says can't move the focus to txtDummy because it is not visible

  4. #4
    davegri's Avatar
    davegri is offline Excess Access
    Windows 11 Access 2019
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,741
    It says can't move the focus to txtDummy because it is not visible
    Make it visible but set height, width, top, left to zero.

  5. #5
    rwahdan1978 is offline Advanced Beginner
    Windows 11 Access 2016
    Join Date
    Jun 2024
    Posts
    57
    Quote Originally Posted by davegri View Post
    Make it visible but set height, width, top, left to zero.
    Thanks it works

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

Similar Threads

  1. Replies: 3
    Last Post: 10-23-2020, 07:13 AM
  2. Set Focus to a field on Form Load
    By swenger in forum Forms
    Replies: 4
    Last Post: 08-23-2016, 11:58 AM
  3. Replies: 1
    Last Post: 12-23-2015, 08:45 AM
  4. change focus; disable control
    By markjkubicki in forum Forms
    Replies: 8
    Last Post: 07-30-2013, 10:31 AM
  5. Load form from datasheet and set focus
    By Dulanic in forum Forms
    Replies: 3
    Last Post: 03-26-2012, 08:30 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