Results 1 to 3 of 3
  1. #1
    donnan33 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    52

    Controls in forms and subforms

    I have a form. it has a main form and 2 sub forms. on data entry i need to be able to enter data on main form then it on enter it goes to first field of first subform which is great. then on last field of first subform it will not go to first field of next subform. it keeps going to back to first fireld of same form not to next sub form. how can i get it to go after tab or entry to first field of next subform?

  2. #2
    Robeen is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Location
    Tulsa, Oklahoma.
    Posts
    1,596
    You can use the information on this page:
    http://msdn.microsoft.com/en-us/libr...ffice.10).aspx
    . . . to help you to force the focus to go to the next sub form.

    For instance, you can put VBA code in the 'On Lost Focus' Event of the last field on your first sub form telling Access that when you leave that field, you want the focus to go to the first field of the second sub form.

    Your code in that event might look something like this:
    Code:
    Forms!MainForm.SecondSubForm!FirstFieldOnSecondSubForm.SetFocus
    I hope this helps!

  3. #3
    donnan33 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Dec 2011
    Posts
    52
    Thank you for your help.

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

Similar Threads

  1. Replies: 5
    Last Post: 10-27-2011, 01:00 PM
  2. Filling controls on two forms
    By recon2011 in forum Forms
    Replies: 3
    Last Post: 09-01-2011, 01:54 PM
  3. Replies: 1
    Last Post: 06-24-2011, 04:27 PM
  4. Replies: 5
    Last Post: 06-29-2010, 06:10 AM
  5. Controls don't work on subforms
    By rscott7706 in forum Forms
    Replies: 8
    Last Post: 03-07-2010, 10:17 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