dbTalk Databases Forums  

How to forbid users to delete records in a table

comp.database.ms-access comp.database.ms-access


Discuss How to forbid users to delete records in a table in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Arthur Cheung
 
Posts: n/a

Default How to forbid users to delete records in a table - 07-21-2003 , 05:04 AM






I am using MS-Access 2k and would like to ask how to disable a user from
deleting a record in the table view?

Thank you very much.


Arthur Cheung



Reply With Quote
  #2  
Old   
Scott McDaniel
 
Posts: n/a

Default Re: How to forbid users to delete records in a table - 07-22-2003 , 07:06 AM






The easiest way is to (a) disable the database window on startup (along with
the hotkeys that allow users to bring up the db window and (b) disable the
shift-key bypass so that users cannot hold down the shift key to bypass the
startup options. The theory here is that if users cannot GET to the tables,
they cannot delete data from them!!

P.S. Check in online help for complete info regarding these.


"Arthur Cheung" <chgky (AT) nixon (DOT) com.hk> wrote

Quote:
I am using MS-Access 2k and would like to ask how to disable a user from
deleting a record in the table view?

Thank you very much.


Arthur Cheung





Reply With Quote
  #3  
Old   
Ari Lea
 
Posts: n/a

Default Re: How to forbid users to delete records in a table - 08-01-2003 , 10:04 PM



Then if you assess the currentuser() in code or macro you can check for a
selected user name before
allowing a macro or code to continue.

The 'hardway' involves implementing security. Basically Security was always
ON, but the default use (Admin) and all permissions are accessible. It is
somewhat complex but allows for lots of control over specifics such as who
can delete or edit specific objects.

Still, it is more easy as Scott is hinting at to 'mask' those specifics in a
form. To put it into effect for a specific user, will require some kind of
log-on, or at least a password when accessing a particlular feature.

"Scott McDaniel" <junk (AT) junk (DOT) com> wrote

Quote:
The easiest way is to (a) disable the database window on startup (along
with
the hotkeys that allow users to bring up the db window and (b) disable the
shift-key bypass so that users cannot hold down the shift key to bypass
the
startup options. The theory here is that if users cannot GET to the
tables,
they cannot delete data from them!!



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.