Results 1 to 6 of 6
  1. #1
    anwarvety is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    3

    Forms: VBA to set focus to form's default search box (at the bottom of the form)


    I have a main form and a subform in it.
    I need in main form's onload event property
    to set focus to subform's default search box
    that is located in record navigation bar at the bottom of every form

    Plz help

  2. #2
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    I don't know know of a way to set the focus to the navigation controls, never had to try that since I prefer making my own navigation controls. I would suggest you do the same. Make your own textbox for a search box and filter your subform data source with a query that uses a filter based on the text in your text box.

  3. #3
    Missinglinq's Avatar
    Missinglinq is offline VIP
    Windows 7 64bit Access 2007
    Join Date
    May 2012
    Location
    Richmond (Virginia, not North Yorkshire!)
    Posts
    3,018
    Quote Originally Posted by Xipooo View Post
    I don't know know of a way to set the focus to the navigation controls, never had to try that since I prefer making my own navigation controls. I would suggest you do the same. Make your own textbox for a search box and filter your subform data source with a query that uses a filter based on the text in your text box.
    That's the same approach I suggested where the OP double-posted the problem, here:

    http://www.utteraccess.com/forum/VBA...2#entry2441502

    Linq ;0)>

  4. #4
    anwarvety is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    3
    Yes Missinglinq

    It's OK Now....

    Thanks for your help on both sites .......

  5. #5
    anwarvety is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jan 2014
    Posts
    3
    Thanks a Lot Xipoo

    As you suggested,
    I created the search box with the help of Allen Browne's Module ajbFindAsUType

    That's working .....

  6. #6
    Xipooo's Avatar
    Xipooo is offline Sr. Database Developer
    Windows 8 Access 2013
    Join Date
    Jan 2014
    Location
    Arizona
    Posts
    332
    Good to hear. Thank you for marking the thread as solved.

    Cheers.

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

Similar Threads

  1. Bottom-up search on a combobox
    By argsemapp in forum Forms
    Replies: 1
    Last Post: 11-14-2013, 05:39 PM
  2. requery bottom form after closing pop up
    By ck4794 in forum Forms
    Replies: 4
    Last Post: 10-19-2013, 05:34 AM
  3. Replies: 5
    Last Post: 09-05-2012, 06:42 PM
  4. Replies: 0
    Last Post: 04-12-2011, 10:37 AM
  5. can't update form-in the bottom bar of
    By ymds in forum Access
    Replies: 2
    Last Post: 07-19-2010, 06:26 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