Hi John,
Neat idea, but I don't see that a Validation Rule is available for an Autonumber data
type. It is available for a Number data type, but then you'll still have to "roll your
own" (code, that is) in order to make it work.
_________________________________________________
i have a application using VBA and Access DB. can i limit the # of records
in the tables to lock the app for demo purposes?
One sneaky way is to put a Validation Rule on a numeric (e.g.
autonumber) primary key of
to limit the table to 100 records (or fewer if the autonumber has
gaps).
the DB is password protected
Just be aware that there are plenty of websites which offer tools to
crack simple password protection; it's about as secure as a $8.95 bike
lock. I'd strongly recommend at least reading the Microsoft Security
FAQ and properly securing the database with workgroup security; it can
be cracked but it's a lot more work.