Results 1 to 8 of 8
  1. #1
    Hikari Kisugi is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    4

    Building a staff training database. How to query a field with multiple values?

    Hi,
    I am trying to build a small access database to allow us to keep track of our employees training.
    We are a small healthcare company, and I have thus far been able to modify a MS template to allow us to enter staff personal details.
    I have then created a second table for training information.
    The training table has field for unique ID, title of course, trainer, date, duration and who attended.
    The who attended field allow for multiple contacts to be selected with a checkbox style box appearing, as many people can attend one training session.

    What I am trying to achieve is a method of adding an individuals training record to a form which contains their contact details, preferably as a second page.
    I thought I would be able to achieve this with a subform, unfortunately the subform query system doesn't seem to allow me to investigate the 'values' contained within a field which has multiple entries.
    I can't see any way around this but I am very new to access.
    Is there a way around it?


    Something obvious I have missed?

    Thanks for advice in advance.
    Anyone help me on a process to achieve what I need?


    Access 2007 on Win7/Win8 System

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    I NEVER use multi-value fields. Instead, use a 'junction table' that relates staff with course. Bind a form to the junction table and place it on a form bound to Courses table. Select employee from combobox in the subform to create a record for each staff attending the course displayed on the main form.

    Why would you need to show staff contact info on this data entry form? Consider a report instead.
    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
    Hikari Kisugi is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    4
    Thanks for replying so swiftly.
    The multi-value field in question was a box containing everyone's name. I can remove that, only test data has been added to this point.
    Staff contact info is on the staff data entry form for the contacts tables.

    With your method when I am generating each course for the training table, and saying who was present, does it involve an individual entry for each staff member?
    I am a little confused regarding the binding process you are suggesting.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Data entry with form/subform arrangement is basic Access functionality. Review http://office.microsoft.com/en-us/ac...010098674.aspx
    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
    Hikari Kisugi is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    4
    Thanks again.
    Yes thanks I had been reading that earlier while working through some of the access tutorials.
    What I am asking is if with say 45 employees, 20 of them attend a course, is it possible, without using a multi-value field, use a subform to enter all their names at once, in a way that is searchable using an individuals name?

    I think I am clearly setting out the wrong fields, or not planning the database correctly, but I can't see how I can change the structure to make it useful in exactly the way I need.

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Not really. The subform method is creating a record for each attendee. Select one employee from combobox. Move to new record row, select another employee from combobox.

    It would be possible to select multiple employees in a multi-select listbox then use VBA code to save a record for each selected employee.
    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.

  7. #7
    Hikari Kisugi is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Aug 2013
    Posts
    4
    Ahh, now that makes sense to me.
    That would leave things searchable and displayable as I would like.
    I'll have to look into the options and then decide exactly what is best.
    The subform method would work fine, but with 45 staffs and approx. 50 different events over the past year, I can't bear the thought of 2000 separate entries with a similar amount in the coming year, and so on, considering their is such mass duplication of people and events.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Bear it or not, that's the nature of relational database.
    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.

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

Similar Threads

  1. Staff Training Query
    By Jmeyering in forum Queries
    Replies: 1
    Last Post: 12-13-2012, 03:02 PM
  2. staff training data base, training
    By SAJAN in forum Forms
    Replies: 1
    Last Post: 09-22-2012, 05:09 AM
  3. Training Database Query Help
    By cjb1317 in forum Queries
    Replies: 6
    Last Post: 10-05-2011, 09:43 AM
  4. query field with multiple values
    By mknowles in forum Queries
    Replies: 1
    Last Post: 11-24-2009, 11:31 AM
  5. Query multiple values in a field
    By JAYgarti in forum Access
    Replies: 0
    Last Post: 07-09-2009, 09:52 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