Results 1 to 7 of 7
  1. #1
    travelmedic is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2022
    Posts
    10

    Post Selecting multiple items to create a form

    I have a little knowledge of access but I need help.



    I'm trying to create a form that auto-populates an employee name and time they started based on certain criteria.

    Here is an example. There are 3 different employee group numbers, but only 2 work at any time. So if a supervisor puts today's date and only group 1 and 2 are working, I only want the employees in these groups to show in a separate form. Any help would be appreciated.

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,822
    That sounds like a tedious approach. Why not have a listbox of employees (if there are hundreds you can probably filter this list) and multi select from the list, then click some button and populate either a continuous or datasheet form below? The unbound controls you use for the search parameters would go in the form header. The results can go in the form detail section. Those records would have a field that you could enter data into. If you want to make that a checkbox field you can do that if all you want is a yes/no result, but checkbox fields are not the best for handling Nulls.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    travelmedic is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2022
    Posts
    10
    I'm trying to filter the employees who work based on if their group is working that day. I have 200+ employees and a few supervisors doing the work.

  4. #4
    Join Date
    Jan 2017
    Location
    Swansea,South Wales,UK
    Posts
    5,012
    So I would expect you need a table that holds that data in the first place?
    Then when the date is entered, you look at that table and load that data into the form.?

    So you would need a table for employees with a field for which group they belong to. Then you can link that table to the Workgroup table that holds the data for when any group is working.

    I did something similar with employees and their working hours.
    Each week, I took the default working hours for an employee and added them to the workdays table and amended as needed.
    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

  5. #5
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,822
    That means the list won't be 200 for any given day then, no? How many? You filter the list by day and/or shift/crew/role/etc. ?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  6. #6
    travelmedic is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2022
    Posts
    10
    No, only a 1/3 of the employees come in on any given day, give or take a few. I need to filter the list by day.

  7. #7
    travelmedic is offline Novice
    Windows 10 Access 2016
    Join Date
    Mar 2022
    Posts
    10
    I have an employee data table with their names, group that they work, times they start, and other demographic info.

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

Similar Threads

  1. Multiple Items Form grouped items
    By Tuckejam in forum Forms
    Replies: 2
    Last Post: 04-29-2020, 10:00 AM
  2. Replies: 2
    Last Post: 02-13-2018, 07:06 PM
  3. Selecting Items in a combo box
    By Ferdi in forum Programming
    Replies: 6
    Last Post: 03-15-2011, 09:12 AM
  4. Selecting multiple items from Dropdown
    By Kipster1203 in forum Forms
    Replies: 12
    Last Post: 06-07-2010, 09:20 AM
  5. Replies: 1
    Last Post: 11-11-2006, 08:23 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