Results 1 to 10 of 10
  1. #1
    newtoaccess2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    8

    Form not switching between subforms

    Good afternoon,



    I am very new to access. I have created a form with multiple subforms (each subform was added using the subform wizard) to be used for data entry. When entering data, I am able to tab down through the main form into the first subform and then I cannot tab into the other subforms. If I manually click on the next form I can enter data, but the same thing happens I get stuck within that form unless I manually click on the next. How can I tab down through the various subforms to enter data? I have used the tab control to create the same type of form, but for this form I need it to be identical to the data entry form used in the field, i.e. it cannot have tabs).

    Database Info: Tables are all linked one to many using Survey ID as the primary key in the main table (Survey Location Info) and Survey ID as the foreign key in the subsequent tables (i.e. survey weather conditions, observation details, etc. Join type for each is "Include ALL records from 'Survey Location Info' and only those records from 'Survey Weather Conditions' where the joined fields are equal". When creating the subforms with the subform wizard, the subforms were linked via the Survey ID field (i.e. Survey Location Info - master field = Survey ID and Survey Weather Conditions - child field = Survey ID) I hope all this makes sense. Also I have not used code at all so I would be lost in that area.

    Any help someone could provide would be greatly appreciated.

    Thanks!!!

  2. #2
    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 newtoaccess2 View Post

    ...I am able to tab down through the main form into the first subform and then I cannot tab into the other subforms...
    What happens when you try? Are you talking about tabbing through the Controls of the Main Form, tabbing to the first Subform, tabbing through its Controls, then attempting to tab into the second Subform? If so, where does the cursor go when you attempt this last step?

    Linq ;0)>

  3. #3
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    Here is an Example:
    Forms!MainForm![Subform].Form.SetFocus
    HTH

  4. #4
    newtoaccess2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    8
    Linq- thanks for your reply. I can tab through the main form controls and into the first subform, but then I can only tab through the controls in the 1st subform. If I manually click on the 2nd subform, I can tab through only those controls and so on. Is there a way to tab through the controls of each subform and then go directly to the next subform without doing it manually? Also the tab order is correct. Please keep in mind I know nothing about code so if it requires code I'm gonna need a lot of direction. Thanks!!!!!!

  5. #5
    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
    I'm not certain, about this, but in Form Design View, for the Form the Subform is based on, go to Properties - Other and check the Cycle Property; of it's set on 'Current Record' change it to 'All Records' and see if that helps.

    Linq ;0)>

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    In my experience, cannot tab between subforms.

    I thought Alt+character shortcut worked for selecting tab control pages - if it did in 2007, doesn't in 2010.
    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.

  7. #7
    newtoaccess2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    8
    @ missinglinq; Thanks for the reply! Unfortunaly, I have tried changing the cycle property in both forms. It allows me to cycle through all of the individual records for that form, but doesn't allow me to tab to the next subform. Thanks for the help!

  8. #8
    newtoaccess2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    8
    @ burrina, thanks for replying! I have seen this code used before in other forum posts, but I'm unsure how to apply it. Should it be entered under a specific event property? Or does it need to be entered in VBA with additional code? I'm unfortunately new to Access and writing any type of code. Any advice or direction you could provide would be greatly appreciated!!

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    burrina's code could possibly be in the Exit event of the last control on subform. I use only VBA, not macros. So select [Event Procedure] in the event property and click the ellipsis (...) to open VBA editor at the procedure. Type code.
    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.

  10. #10
    newtoaccess2 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Aug 2014
    Posts
    8
    Thanks June7!!!! I'll give it a try.

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

Similar Threads

  1. Switching backend mdb
    By GraeagleBill in forum Programming
    Replies: 18
    Last Post: 03-23-2013, 03:19 PM
  2. Replies: 3
    Last Post: 10-20-2012, 09:18 AM
  3. Replies: 5
    Last Post: 09-05-2012, 06:42 PM
  4. Replies: 3
    Last Post: 12-19-2011, 11:39 AM
  5. switching int/double
    By giladweil in forum Access
    Replies: 2
    Last Post: 07-05-2010, 01:13 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