Results 1 to 5 of 5
  1. #1
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    50

    Populating Multiple Facilities

    I have searched for weeks on this request, but cannot find anything. My team has asked if there is a way to populate the facility locations per practice. For example Practice A has one location and Practice B has four locations. When Practice B is selected they would like all four locations to show on the form, but if Practice A is selected only show that one location. I have two tables, Practices and Facilities. They are related by the PracticeID as the FK in the Facilities table. I have looked into the DoWhile Loop but I'm not sure if that is going to produce what they're asking. I haven't written anything yet.Just trying to get pointed in the right direction.

    Can this be done? All responses will be greatly appreciated

    Thanks 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,652
    Is this what you're looking for?

    Baldy-Cascading Combos
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mpaulbattle is offline Advanced Beginner
    Windows 7 32bit Access 2010 64bit
    Join Date
    Aug 2013
    Location
    Houston
    Posts
    50
    Not quite.
    On the Practice form, there is a search box where usually they search for by the Mnemonic field in the Practice table. When that practice pulls up they click open and it opens to the practice detail form. On the form it has three tabs. The Practice's information regarding the programs they participate in, Notes, and Facilities. Right now it only shows the first location of each practice. If it has more than one they would like those to show as well. I thought about adding enough text boxes and making them invisible if isnull, but someone said we can just have the facilities populate. I think the most would be 15 facilities for one practice.

  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,652
    I don't think I'm visualizing what you want. Can you attach a sample db here that shows it?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    The data structure you are describing is a one-to-many relationship between practices (the "one") and facilities (the "many").

    This very common structure is often implemented using a form-subform arrangement. In your case, one of the tabs on the main form would contain a subform to display data for the different facilities for the practice currently shown on the main form.

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

Similar Threads

  1. Auto Populating using multiple tables.
    By Huddle in forum Forms
    Replies: 2
    Last Post: 02-23-2015, 11:37 AM
  2. Query Not Populating multiple results
    By jj1 in forum Access
    Replies: 5
    Last Post: 10-15-2014, 11:36 AM
  3. Populating ID in multiple tables
    By Dega in forum Database Design
    Replies: 18
    Last Post: 11-22-2011, 07:32 AM
  4. Reports for different type of Facilities
    By rodeoboy in forum Reports
    Replies: 11
    Last Post: 03-08-2011, 04:47 PM
  5. Populating multiple fields
    By jjcaprio in forum Programming
    Replies: 11
    Last Post: 08-16-2009, 01:51 PM

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