Limit Number of Records in a table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to limit the number of records in a table to say 1 or 5 or 10?
 
Is there a way to limit the number of records in a table to say 1 or 5 or 10?

One sneaky way is to assign an integer field as a Primary Key, and
give it a validation rule such as
0 AND <= 5


John W. Vinson[MVP]
 
Not without preventing it yourself by checking every time you are about to
update the table.
Why would you want to do that?
There is almost certainly a better solution.

Dorian
 
For the Validation Rule of your key field (numeric, unique), put in something
like this:
=1 Or 2 Or 3 Or 4 Or 5
 

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

Back
Top