D
DS
Is there anyway to lock a table so that no more records can be added?
Thanks
DS
Thanks
DS
Is there anyway to lock a table so that no more records can be added?
WoW!! Yeah that helps. Since the user can't get to the tables I'm sureJeff said:in message:
Yes and No are the correct answers.
Yes you can limit the number of records in a table by using some code and
never allowing users direct access to the tables themselves.
No you cannot (to the best of my knowledge) specifically lock a table
to not allow more records directly from the Database Window, or through
some other code.
Make sense?
You can set a Form's AllowAdditions property to "No" to not allow more
records to be added, but if a user can get direct access to the table, then
you cannot stop that.
To truly achieve your goal you would need to do at least all of the following:
1. Completely secure the application using Access User Level Security (ULS).
And it must be done *right.* You must also deny all permissions to the tables
themselves and only use RWOP queries to read/write data.
2. All data entry must be done through forms. Period.
3. You must use code in your forms to limit the number of records allowed
in the table(s).
4. You should create custom menu bars and toolbars to limit what functions
the users have access to.
5. You should disable the Shift key bypass using the correct DDL code
so your users cannot bypass the Startup options.
Not a trivial task for sure, but it can be done.
You may want to read MVP Tony Toews thoughts on this particular
subject as well here:
http://www.granite.ab.ca/access/demo.htm
Hope that helps,
WoW!! Yeah that helps. Since the user can't get to the tables I'm sure
I'm safeMaybe...? How do you lock the users out of the tables? I'm
planning on hiding the Database container and disabling the shift key,
I've already hidden all Menu Bars. Thanks