Restricting the number of records that can be created by date

K

Keith

I am trying to set up a scheduling database system, in
which I must restrict the number of events (records) by a
different amount for each day of the week.

For Example:
Monday: schedule 70 calls
Tuesday: schedule 85 calls
Wednesday: schedule 45 calls

What validation rules of expression would work for this.

Thanks
Keith
 
J

John Vinson

I am trying to set up a scheduling database system, in
which I must restrict the number of events (records) by a
different amount for each day of the week.

For Example:
Monday: schedule 70 calls
Tuesday: schedule 85 calls
Wednesday: schedule 45 calls

What validation rules of expression would work for this.

A table validation rule isn't going to work here, I don't think!
You'll need to force all your data entry to be done from a Form and
use VBA code in the Form's BeforeInsert event to count records, and
set the sub's Cancel operand to True if there are already the max
number of allowed records.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top