Results 1 to 2 of 2
  1. #1
    kfitzpa1 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2013
    Posts
    2

    Navigating between a main form and three subforms (MS Access 2010)

    I've created a data entry form that is comprised of the main form and three subforms. Each form updates a separate table. Once the record is saved from the main form via the [Next] command button, I'd like for the focus to go to the first control in the first subform and the same process upon clicking the [Next] button in the first subform to the second and then the third. I've tried the following code, which works from the Main form to the first subform, but craps out after that and I receive an error that the second subform cannot be found, etc.
    Code for the OnClick property of the [Next] command button:
    Me![Subform1].SetFocus


    Me![Subform1].Form![DataField1].SetFocus

    Help!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    You have 4 "Next" buttons? Isn't it just as easy to click directly onto subform as it is to click a button?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Replies: 19
    Last Post: 05-13-2013, 01:26 AM
  2. Multiple subforms to one main form
    By mick3911 in forum Forms
    Replies: 8
    Last Post: 02-25-2013, 09:40 PM
  3. Replies: 1
    Last Post: 08-02-2012, 02:11 PM
  4. Replies: 0
    Last Post: 12-16-2008, 07:49 AM
  5. Replies: 2
    Last Post: 04-11-2006, 08:40 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