Results 1 to 2 of 2
  1. #1
    johanja is offline Novice
    Windows 10 Access 2016
    Join Date
    Nov 2016
    Posts
    2

    Setfocus to textbox on subform of Navigation Subform

    I have a Navigation Subform with several navigation buttons across the top.


    When I click on one of the navigation buttons, I would like to set focus on a certain textbox placed on the subform corresponding that button's Navigation subform.

    This screen is for barcode entry so I want to make sure the form is ready for action when the user clicks on the nav button.


    How do I set focus to the subform control from the navigation button OnEnter event?

    Here is my structure:

    Main_Distri --> NavigationSubform --> Main_Distri_Incomming --> subfrmBarcodeEntry --> txtBarcodeString

    where txtBarcodeString is the textbox control that I want to set focus for.

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    Use the builder to the the correct path. You just drill down in Active forms.
    usu.:
    forms!myMainForm!subFormName!form!txtbox.setfocus

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

Similar Threads

  1. Replies: 1
    Last Post: 12-05-2016, 02:23 PM
  2. Replies: 1
    Last Post: 02-12-2016, 08:06 PM
  3. Replies: 15
    Last Post: 10-08-2015, 02:24 AM
  4. SetFocus on Field in subform
    By quicova in forum Forms
    Replies: 5
    Last Post: 09-20-2013, 04:10 PM
  5. Replies: 4
    Last Post: 10-08-2012, 05:33 PM

Tags for this Thread

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