Results 1 to 7 of 7
  1. #1
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568

    Adding new values from comboboxes to the visible list - technical solution

    Hi,



    i would like to do 1 combobox and when user will choose one value from it, this value should be add to the list below.
    And i would like to add also possibility to delete choosen items from list by user.

    After all choices user can click on the button and add new recors into summary table.
    After this action list should be cleared and be ready for new data choosen by user.

    What will be the best Access feature in order to do it?
    Maybe somebody from you, Developers were building something like that?

    Please help,
    Best wishes,
    Jacek Antek

  2. #2
    pbaldy's Avatar
    pbaldy is online now Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,530
    I would probably just use a multi-select listbox. If you want to do what you describe, I'd have a local table to hold the selections. In the after update event of the combo, either use an append query or the AddNew method of a recordset to add a record to that table using the combo's value. Then requery the subform or whatever you have listing the values.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you pbaldy.

    Okey it seems ok. But...

    I should have possibility to delete user selections after adding them to this local table.
    And after reviewing them by user, there should be possibility to click on "Add button" and add all choosen selections into summary table.
    After that selections should be deleted (to not hold a lot of not necessary data - i dont want to bloast the database).

    I do not see exactly what you mean here.

    Thank you for your help,
    Best Wishes,
    Jacek

  4. #4
    davegri's Avatar
    davegri is online now Excess Access
    Windows 10 Access 2016
    Join Date
    May 2012
    Location
    Denver
    Posts
    3,436
    jaryszek01.zip

    Something like this?
    tblColors is the source, tblTemp is a temporary table, and tblSummary is your end result.

  5. #5
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thankk you davegri !!!

    It is very nice solution. I have to only change it a little (left listbox change to combobox).

    Best wishes,
    Jacek

  6. #6
    orange's Avatar
    orange is online now Moderator
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,746

  7. #7
    jaryszek is offline Expert
    Windows 7 32bit Access 2010 32bit
    Join Date
    Aug 2016
    Posts
    568
    Thank you orange !

    Have a nice day my friend

    Best wishes,
    Jacek Antek

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

Similar Threads

  1. Replies: 10
    Last Post: 08-21-2015, 12:12 PM
  2. Replies: 3
    Last Post: 05-28-2015, 05:14 PM
  3. Replies: 1
    Last Post: 09-09-2014, 02:01 PM
  4. Replies: 2
    Last Post: 11-19-2013, 01:43 PM
  5. Replies: 3
    Last Post: 11-24-2012, 05:35 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