Results 1 to 3 of 3
  1. #1
    Wombat is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    33

    Save data by checkbox

    Reference thread https://www.accessforums.net/showthr...-on-two-tables


    Quote Originally Posted by June7 View Post
    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.
    This might help with an issue that I'm working on except there's a twist:

    Instead of a checkbox for which type of clothes they're wearing, if I pull up a man's record, I would like a form that lists "Pants" "hat" and "Shirt" and I could have a textbox where i could describe Each.

    Women's records have "Skirt", "Blouse", "Sunglasses" and "shoes" (4 items as opposed to 3 for men).

    I'm picturing a continuous form filtered by menswear or women's (depending on the person I pull up) but I can't figure out how to get it to save the record of my descriptions.

    Any ideas?
    Last edited by June7; 03-15-2012 at 06:40 PM. Reason: Mod edit: move post

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    This is what bound comboboxes are best suited for. Otherwise, will need code to save the selected item.
    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
    Wombat is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    33
    Quote Originally Posted by June7 View Post
    This is what bound comboboxes are best suited for. Otherwise, will need code to save the selected item.
    So if I want to use a textbox, I need code to save it? I guess that wouldn't be too hard, I just didn't even think of it.

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

Similar Threads

  1. Replies: 4
    Last Post: 12-22-2011, 03:04 AM
  2. Save Combobox results to Table
    By Kinder0177 in forum Access
    Replies: 5
    Last Post: 06-29-2011, 08:47 AM
  3. Using VB to save data in a form
    By blueraincoat in forum Forms
    Replies: 7
    Last Post: 03-25-2011, 09:06 AM
  4. Replies: 4
    Last Post: 01-05-2011, 07:56 AM
  5. Find data, load data, and save as a new record
    By hawzmolly in forum Access
    Replies: 0
    Last Post: 10-05-2008, 03:18 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