Results 1 to 5 of 5
  1. #1
    DB88 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    110

    Display related records from another table?

    I learned database design using FileMaker but my new company only has Access so I'm trying to learn. I built a one-to-many relationship between Platform (one) to Features (many) using the table LineItems. To set up the relationship, both Platform and Features have primary keys. Then each record in LineItem contains two foriegn keys, one denoting the Platform and one denoting the Feature. I didn't use Lookup because that appears to only work for One-to-One relationships.

    To start I want to just view the features associated with a specific platform in a form. I tried a list box, a subform and a combo box. Each one would show ALL records from Features not just those related to the specific platform record. What am I doing wrong?

    Once I solve that problem, I would like to be able to create LineItem records from the Platform form.



    Note: If you are familiar with FileMaker, I'm trying to get the functionality of a portal

    [SideQuestion: why does the lookup wizard create a new relationship/new table in relationship view everytime, even when the necessary relationship is already established?]

  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,633
    The listbox, subform, combobox must be filtered.

    Subform container control has Master/Child Links properties that will synchronize main/sub form records.

    Options for data entry/edit form:

    1. one form bound to LineItems with two comboboxes to select platform and feature

    2. main form bound to Platform and subform bound to LineItems with combobox to select feature

    3. main form bound to Features and subform bound to LineItems with combobox to select platform


    Don't know about lookup wizard, don't use it, I avoid most of the wizards because they do stuff I don't like. I NEVER set lookups in table.

    Why do you think lookup works only for 1-to-1 relationship?
    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
    DB88 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    110
    Thanks! Now I can view the associated Features records.

    How do I set it up so that a user could add specific features to a platform record from the Main Platform form? For example a platform can have a combination of 10 features. When I add a new platform, I want to also select from drop down list the x number of features. How do I set it up so that I create a new LineItem record using LineItem subform and select the associated feature (without just typing in feature primary key)?

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    Option 2 form/subform. Multi-column combobox. Review http://www.datapigtechnologies.com/f...combobox3.html
    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.

  5. #5
    DB88 is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Apr 2014
    Posts
    110
    Thanks!! I got it.

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

Similar Threads

  1. Replies: 3
    Last Post: 03-22-2014, 04:32 PM
  2. Replies: 8
    Last Post: 09-08-2013, 12:34 AM
  3. Replies: 2
    Last Post: 04-30-2013, 07:55 PM
  4. query won't display records with no related records
    By James Brazill in forum Queries
    Replies: 1
    Last Post: 06-28-2011, 02:10 AM
  5. Replies: 1
    Last Post: 04-02-2011, 11:55 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