Results 1 to 5 of 5
  1. #1
    sjolley is offline Novice
    Windows 10 Access 2010 64bit
    Join Date
    Nov 2017
    Location
    england
    Posts
    2

    multi-select combo box

    i have a form, linked to a qry.

    i have the below multi-select combo box where i show the description as one column, and a value as one column. the combo box values come from a separate table.

    When making a selecting, the description is returned and stored into the table. Which is what i want.

    What i also want, is the value to be also stored into a different field in the table. so depending on the description and the amount of descriptions selected, the numeric value will change.

    How can i best sum up the numeric value of the selected values, eithin within the qry or by using vba code within the form to store to a seperate field.

    any ideas would be greatly appreciated.



  2. #2
    CJ_London is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,932
    Why? You just look it up when required

    also please clarify your terminology- multi select refers to a listbox. Perhaps you mean a multi value combo box? They are not the same and the latter comes with many limitations.

  3. #3
    ano is offline Competent Performer
    Windows 11 Office 365
    Join Date
    Nov 2023
    Posts
    204
    after update vba code to do what u have in mind

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    First, don't recommend using multi-value field at all.

    Second, save the ID not the description.

    Third, build query to retrieve related data.
    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
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    6,556
    Good luck getting a response from the O/P.
    This is their other post. https://www.accessforums.net/showthr...160#post378160
    Please use # icon on toolbar when posting code snippets.
    Cross Posting: https://www.excelguru.ca/content.php?184
    Debugging Access: https://www.youtube.com/results?sear...bug+access+vba

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

Similar Threads

  1. Multi-select with Combo box?
    By matey56 in forum Forms
    Replies: 13
    Last Post: 05-27-2021, 07:45 PM
  2. Import data into multi-select combo box
    By ezybusy in forum Access
    Replies: 3
    Last Post: 12-02-2015, 11:18 AM
  3. Replies: 6
    Last Post: 05-15-2013, 03:36 PM
  4. Turn a list into a Multi select combo box
    By seth1685 in forum Programming
    Replies: 1
    Last Post: 01-11-2012, 07:52 AM
  5. Multi Select Combo box for print function
    By jparker1954 in forum Reports
    Replies: 11
    Last Post: 09-17-2011, 03:08 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