Lori said:
Rick - The user cannot "access" the tables or the queries on which my forms
are based - I have it set up where they cannot get to the database itself.
They just have access to the form. I have thought about this and it is why I
asked the question. Please don't assume I have not thought about this prior
to posting - I have.
If you have not set up full blown user level security then users CAN get to the
table. You might have set up some obfuscation to prevent the average "clerk"
from getting to it, but anyone who has even a casual familiarity with Access can
get to it if security is not in place.
I simply asked if there was a way to restrict access to a particular form -
sort of like a password to open an object. If there isn't, that's fine.
Please do not pass your judgement on my thought process prior to posting or
whether I have done a search for a post prior to asking a question.
Yes there are ways to restrict the ability to open a form IF you provide users
with an MDE. In that case even an advanced user would not be able to open the
*form*. All you need to do is prompt for a password in the Open event and set
the Cancel argument of that event to True when the password is incorrect.
Getting to the tables though would be trivial.
An Access form cannot exist in isolation from its Data Source. If the table or
query is in the same MDB file as the form then it can be gotten to. This would
be very easy without User Level Security and only a bit harder with ULS.