Limit number of entries for a record

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • marcygriebel
    New Member
    • Nov 2012
    • 1

    Limit number of entries for a record

    We have a Healthy Life MS Access database where a person's number of blood pressure check ups are recorded and they are paid $2.50 for each checkup with a maximum of 2 entries (or $5.00 per year). How do I create a rule on the form so that the user is alerted when attempting to add a 3rd checkup, which exceeds the maximum.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    Using an appropriate event, in your case, it sounds like you want to use the before insert event or before update event, use a DCount() to find out how many that person has. Then cancel the insert or update if they already have two.

    Comment

    Working...