Results 1 to 4 of 4
  1. #1
    PBear is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2010
    Posts
    3

    Select Query

    Hi, I have a table with employees names. I understand how to do a query that selects random 10% each month to take part in a test. However, I am unable to figure out how to keep those employees from being selected again as each employee is only required to participate once annually.



    Would appreciate any ideas. Thanks in advance.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,602
    You have a table of all test dates and which employees participated? Or not maintaining history?
    Need a field with date of test. Exclude employee if date of last test is less then 1 year ago.
    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
    PBear is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2010
    Posts
    3
    I wasn't planning on keeping a record of the last test taken as that date would be recorded in their employee file.

    I have now created the date of test field and am trying to figure out how to exclude the record once filled (Any idea on how to auto-fill that field on selection???).

  4. #4
    PBear is offline Novice
    Windows Vista Access 2007
    Join Date
    Nov 2010
    Posts
    3
    June7, Thanks for the idea.

    I added a date field to keep track of when the employee was selected. I also added a yes/no field which would be checked true when the employee was selected. The query now only selects from the employees unchecked. At the end of the year I can go back in and delete all the dates and start over again.

    Thanks for your help

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

Similar Threads

  1. Select Query > Update Query > Table Field
    By tuggleport in forum Queries
    Replies: 2
    Last Post: 08-09-2012, 07:04 AM
  2. Replies: 2
    Last Post: 03-23-2012, 09:20 AM
  3. Replies: 1
    Last Post: 04-14-2011, 07:19 AM
  4. Replies: 2
    Last Post: 01-31-2011, 08:31 AM
  5. select sum query
    By sparkles in forum Queries
    Replies: 1
    Last Post: 10-22-2010, 07:29 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