Results 1 to 2 of 2
  1. #1
    maciej_wroclaw is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Posts
    1

    Form based on two tables

    Hello,

    I have a feeling that my problem is very easy to solve but for some reason I am not able to figure it out for hours..
    In order to explain you my situation let's assume that I have two simple tables. In the first one, called "People" I have few columns which are describes people. On the second table called "Clothes" I have names of clothes that those people are wearing, eg. treasures, t-shirt etc.

    I would like to have a form which will show all columns from table People and group of checkboxes (as many as I have rows in table 'Clothes'). I would like to 'tick' what kind of clothes these people are wearing.

    Could you please guide me how can I accomplish goal described above? I would really appreciate any help which you may provide. If anything is unclear, please let me know - I will try to describe the situation in other words.



    Thank you in advance,
    Maciej

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    If you want to save the checked selections for each person, need a another table - a junction table - because the relationship is many-to-many. Then use form/subform arrangement. Main form bound to People, subform bound to junction table (PeopleClothes). The Clothes table would be RowSource for a combobox in the subform. Each record in the subform would be an item of clothing selected from combobox.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-05-2012, 07:35 PM
  2. Create tables based on field value
    By fpmsi in forum Programming
    Replies: 5
    Last Post: 11-17-2011, 12:42 PM
  3. Matching based on criteria from multiple tables
    By Jonpro03 in forum Database Design
    Replies: 13
    Last Post: 08-04-2011, 10:29 AM
  4. Changing tables based on field date
    By dssrun in forum Programming
    Replies: 6
    Last Post: 07-10-2011, 10:17 AM
  5. Report based on multiple tables
    By Pimped in forum Reports
    Replies: 1
    Last Post: 12-16-2009, 04:14 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