Results 1 to 5 of 5
  1. #1
    laniebe is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    17

    How to Append Information to a Table from Multi Select List Box

    Hello! I have a form with an unbound multi select list box where I want to move 3 columns of information for each line selected to a new table. I also want the column information to be in separate fields in the new table.

    My table with the information is called tbEmployees
    My new table is tbHoursWorked

    My form is frmHoursWorked

    My fields are EmpID, Primary_Dept, Position

    Thank you!!

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    doing it that way requires a lot of coding,
    but it you use single select box, then dbl-click the item,
    the event would fire a query to pull all the fields in that event.

  3. #3
    laniebe is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2016
    Posts
    17
    Ranman! Thank you! I've been away from Access for a few years so I'm a little rusty. In normal circumstances I would not duplicate that information but we have to have it for historical purposes as the employees move around all the time with departments / positions. We have to keep their historical time log.

    With that known, do you have any other ideas or suggestions to pull multiple employees information into a new table at the same time. There are over 500 employees so unfortunately doing them one at a time would take A WHILE.

    Thank you for your input!

  4. #4
    ssanfu is offline Master of Nothing
    Windows XP Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    Here are examples of working with multi select list boxes: Use a multi-select list box to filter a report http://www.allenbrowne.com/ser-50.html Even though this is about filtering, just modify the code to add the records you need. The main thing is HOW to get the values selected in the multi-select list box. ClearList() and SelectAll() functions http://www.allenbrowne.com/func-12.html MultiSelectListboxes.mdb (intermediate) http://www.rogersaccesslibrary.com/forum/topic315.html MultiSelect.mdb (Intermediate) http://www.rogersaccesslibrary.com/forum/topic316.html

  5. #5
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,524
    dbl-clicking or mutli selecting a list of 500 both take the same time.

    the dbl-click method requires no programming.

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

Similar Threads

  1. Replies: 15
    Last Post: 11-20-2013, 04:30 PM
  2. Replies: 3
    Last Post: 01-24-2013, 02:38 PM
  3. Replies: 5
    Last Post: 08-23-2012, 09:33 AM
  4. Replies: 2
    Last Post: 03-27-2012, 01:02 PM
  5. Replies: 1
    Last Post: 10-22-2010, 10:11 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