Limiting records in a table

J

Junior

Acc2K
I have a lookup table and want to limit the possible records to <=10
entries.
How/where would i code the table to set this limitation?
thanks
 
D

Duane Hookom

If I understand correctly, you want to limit the number of records in a
table. About the only way you can do this is to use forms for all data
entry. This would allow you to run code to set the Allow Additions property
based on the number of records in the table.
 
J

John Vinson

Acc2K
I have a lookup table and want to limit the possible records to <=10
entries.
How/where would i code the table to set this limitation?
thanks

One sneaky way to do this is to include an Integer Primary Key, with a
validation rule of
 
T

TC

John Vinson said:
Sufficiently clever and determined users can get around this of
course. But it's a quick, dirty and effective way to do this kind of
limit!


Ok, I'll bite! How would they get around that? (without removing the rule,
of course)

TC
 
T

TC

John Vinson said:
oh... that's what I meant. Breaking your database security, or
otherwise getting to table design view, and removing the rule. Or
renaming the table and creating their own unrestricted table of the
same name.

Ok, I thought you maybe had a sneaky: "Get stuffed, PK!" trick :)

TC
(off for the day)
 
J

John Vinson

Ok, I'll bite! How would they get around that? (without removing the rule,
of course)

oh... that's what I meant. Breaking your database security, or
otherwise getting to table design view, and removing the rule. Or
renaming the table and creating their own unrestricted table of the
same name.

With Access security, it's about as good as you can get... but Access
security can be broken, and then the breaker has pretty much free
rein.
 

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