Results 1 to 4 of 4
  1. #1
    Chillax'n is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2011
    Posts
    2

    Alert on duplicate field

    Can somebody please help.



    I would like to build in an alert that appears on the screen when duplicate information is entered into a field. I would like the alert to appear if there are 5 repetitions over a 4 week period, ie if somebody's name comes up 5 times in 4 weeks the user is alerted.

    Any assistance would be greatly appreciated.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Why not just prevent duplicates? What's with allowing x repetitions over some time frame???

  3. #3
    Chillax'n is offline Novice
    Windows XP Access 2003
    Join Date
    Dec 2011
    Posts
    2
    I expect the field to have duplicates, this is fine.
    For example, if people borrow equipment, I want to restrict the borrowing of different equipment to 5 pieces over a 4 week period.
    If recording incidences, you are able to have 5 incidences over a 4 week period.

  4. #4
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Interesting example, but I don't see where this would fit in a business type rule. It's certainly a valid "sample" to program.

    Check today's date;go back to a date 4 weeks ago;
    collect all borrowings by people and count the number of borrowings in this time period by person, identify where the count >5. if you really want to check for different equipment in each borrowing, then that's the next step.
    Last edited by orange; 12-09-2011 at 10:51 AM.

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

Similar Threads

  1. move to different field when duplicate
    By Fabdav in forum Queries
    Replies: 1
    Last Post: 10-16-2011, 04:19 PM
  2. Create an alert
    By ellixer in forum Programming
    Replies: 2
    Last Post: 06-13-2011, 08:30 AM
  3. Duplicate field(s) and move to new record
    By cwatson62 in forum Queries
    Replies: 0
    Last Post: 04-05-2011, 10:31 AM
  4. Alert Message Code Problem
    By 10 Gauge in forum Forms
    Replies: 1
    Last Post: 03-15-2011, 12:17 PM
  5. Replies: 0
    Last Post: 01-22-2009, 03:38 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