Results 1 to 6 of 6
  1. #1
    SSgtBarry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Yuma, AZ
    Posts
    17

    From subform to subform


    I have 3 linked forms: a parent form, subform1 and subform2. In subform1 I only need to enter 1 record then jump to subform2 and enter many records. How can I get it to automatically tab from the last field in subform1 to the first field in subform2?

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Try just setting the subform1 Cycle property to current record. Then set the TabOrder property of each control so that subform2 follows the last control of subform1
    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.

  3. #3
    SSgtBarry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Yuma, AZ
    Posts
    17
    Quote Originally Posted by June7 View Post
    Try just setting the subform1 Cycle property to current record. Then set the TabOrder property of each control so that subform2 follows the last control of subform1
    Hi June7, and Thanks! but; it didn't work. subform1 just recycles back to it's first field rather than jump over to subform2. Any other suggestions?

  4. #4
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    Perhaps VBA in the subforms' modules could use fully qualified names and the GotoRecord method.

  5. #5
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Interesting, I tested with my db and it worked. If you want to provide db for analysis, I will review and try to figure out why it failed for you. Follow instructions at bottom of my post.

    Alternative is VBA code, possibly in the last control LostFocus or Exit events to set focus to subform2. That also worked for me.

    Me.subformcontainername.SetFocus
    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.

  6. #6
    SSgtBarry is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2014
    Location
    Yuma, AZ
    Posts
    17
    Quote Originally Posted by June7 View Post
    Interesting, I tested with my db and it worked. If you want to provide db for analysis, I will review and try to figure out why it failed for you. Follow instructions at bottom of my post.

    Alternative is VBA code, possibly in the last control LostFocus or Exit events to set focus to subform2. That also worked for me.

    Me.subformcontainername.SetFocus
    June7,

    Thanks! I got it to work. I HAD it where subform1 and subform2 were subs to the parent. Now I have it where there is a parent then subform1, then subform2 is a sub of subform1 (a sub of a sub). It works this way. Thanks for the help!

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

Similar Threads

  1. Replies: 7
    Last Post: 04-15-2014, 01:15 PM
  2. Replies: 1
    Last Post: 04-24-2013, 12:12 PM
  3. Replies: 4
    Last Post: 10-08-2012, 05:33 PM
  4. Replies: 6
    Last Post: 05-05-2012, 08:43 AM
  5. Replies: 4
    Last Post: 03-30-2012, 01:47 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