Results 1 to 13 of 13
  1. #1
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88

    Embed A Navigation Form Instead Of Using Tabs (navigation Form As Subform)

    Hi,

    Is that at all possible? I thought it would be a good idea if I have a form with a lot of data structured in tabs. Since the tab loads all the data at once while the navigation form browses to the desired form. I have tried but the issue is the Master-Child link. The form in the navigation form is not considered as a subform, hence, no way to set a Master-Child link. The navigation form itself is the subform but even when setting up a link there it has no influence on the form displayed by the navigation form.



    Any idea how this could work or is it just that it is not meant to be used this way?

    Thanks
    Jerem

    Cross:
    http://www.utteraccess.com/forum/Embed-Navigation-Form-t2023073.html
    http://www.access-programmers.co.uk/...06#post1390206

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    I have been using master-subform method a long time and they work just fine.
    If you use tabs, use only 1 subform and swap out data as you pick a tab. To prevent out-o-memory issues.

  3. #3
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    Quote Originally Posted by ranman256 View Post
    If you use tabs, use only 1 subform and swap out data as you pick a tab.
    Can you explain how you do that?

  4. #4
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    Alright... I had an answer on another forum. The technique seems to be to create a single subform, add a tab control, send it to back so that the subform is always visible and then change the source based on the tabs.
    Sounds cool! I'm going to give it a try. Thanks.

  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
    52,944
    Wouldn't need a tab control for that. Regular command buttons can accomplish the same.

    I've never used Navigation form, don't like it.

    I guess if need a dependent child form on Navigation form, its RecordSource would have to be a dynamic parameter query that references control on main form for the criteria.
    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
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    True that command buttons would be just fine in this case.

  7. #7
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    I haven't tried yet but does that mean that if a master child relationship exists, it would have to be set up each time the RecordSource changes?

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Do you mean for the conventional subform?

    If all the child tables have the same FK field name for the master PK, then don't have to change the subform container Master/Child links properties. If the field names are different, then yes, must change the Child link property when changing the subform container SourceObject property.
    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.

  9. #9
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    Ok... I guess it makes sense.

  10. #10
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    Options for the Child link key to avoid code to change the property:

    1. same field name in the child tables

    2. subforms have a query as RecordSource, construct a field in the query to serve as the child link, use the same alias name in each query
    AliasName: [the actual fieldname]
    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.

  11. #11
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    I got it the first time sorry... Non-native English speaker mistake: what I meant was of course, it's just simple and makes a lot of sense.

  12. #12
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,944
    I got it that you got it about having to programmatically change the link property if field names are different. Just offering options to avoid that, in case they hadn't occurred to you.
    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.

  13. #13
    jerem is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Nov 2012
    Posts
    88
    Ok thanks! It helps a lot.

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

Similar Threads

  1. Reference Subform on Navigation Form
    By GOP in forum Forms
    Replies: 1
    Last Post: 07-30-2014, 08:18 AM
  2. Replies: 5
    Last Post: 06-30-2014, 10:08 PM
  3. Navigation Form used as SubForm
    By jlgray0127 in forum Forms
    Replies: 2
    Last Post: 03-26-2014, 10:28 AM
  4. Subform Reference on Navigation Form
    By rts in forum Forms
    Replies: 1
    Last Post: 06-05-2012, 02:05 PM
  5. Replies: 2
    Last Post: 01-15-2011, 10:56 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