Results 1 to 6 of 6
  1. #1
    susanclaire is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2016
    Posts
    4

    Is is possible to lock controls to one tab in a navigation form?

    I am using access 2013 to create a database that will be used by my organization and multiple similar organizations in my state. I am trying to create a navigation form that will act as a main menu with a tab for each organization that will use the database. I'm trying to use the subform control on each navigation 'tab' so that there is a unique data entry point for each organization. However, whenever I try to create a subform on a particular navigation tab, the subform is created on every tab. Is there a way to lock a control to just one tab on the navigation form?



    Thank you in advance!!!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    I'll throw out a different possible direction. If you have a number of organizations, having a subform for each can start to be a performance problem, particularly when the form loads. I might have some sort of selection control (listbox, combo, etc) that lets the user select the organization. In the after update event of that control, I'd set the source of a single subform control to the desired organization.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    susanclaire is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2016
    Posts
    4
    Quote Originally Posted by pbaldy View Post
    I'll throw out a different possible direction. If you have a number of organizations, having a subform for each can start to be a performance problem, particularly when the form loads. I might have some sort of selection control (listbox, combo, etc) that lets the user select the organization. In the after update event of that control, I'd set the source of a single subform control to the desired organization.
    I have a follow-up question for you, then! How can I make a menu that can be navigated via a dropdown list. Like, I am unsure of how to associate a subform with the selection from a drop down list. I hope that makes sense!

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Well, you'd either manipulate the SourceObject property of the subform control, or the RecordSource property. The first if you had separate forms to use as subforms for each organization, the second if you used a single subform and just filtered it differently.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    susanclaire is offline Novice
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2016
    Posts
    4
    Quote Originally Posted by pbaldy View Post
    Well, you'd either manipulate the SourceObject property of the subform control, or the RecordSource property. The first if you had separate forms to use as subforms for each organization, the second if you used a single subform and just filtered it differently.
    I'm trying to follow your suggestion. Right now I'm trying to create a main menu with a listbox that includes the names of all the organizations in my state. I want to program an event so that when the user clicks on a particular selection in the listbox it opens the corresponding organization's data entry form. Do you have an example of the code I would use to program such an event?

    Thanks!

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    You haven't specified your structure, but if the listbox contains the name of the form (could be in a hidden column):

    Me.SubformControlName.SourceObject = Me.ListboxName.Column(x)

    where x is the zero-based column containing the form name.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Split Forms and Tab Controls/Navigation Panes
    By McArthurGDM in forum Forms
    Replies: 5
    Last Post: 10-27-2014, 12:53 PM
  2. Replies: 6
    Last Post: 06-07-2014, 04:42 AM
  3. Replies: 8
    Last Post: 02-04-2013, 11:32 AM
  4. Form : Lock all controls in form
    By dek in forum Forms
    Replies: 3
    Last Post: 05-09-2011, 01:22 PM
  5. Replies: 5
    Last Post: 06-29-2010, 06:10 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