PC Review


Reply
Thread Tools Rate Thread

Password protect a form record?

 
 
FL
Guest
Posts: n/a
 
      9th Apr 2008
Is it possible to password protect a form record once data entry has been
made to prevent other users to modify information. I have a few users
entering data into the same form. However, each user has ownership of his
records and would rather others to view only or request permission to change
the record from the owner of originator of record. Each user requires the
ability to find and update any of their own records only. Each user
requires the ability to view records created by others but not change them
without permission.
--
FL
 
Reply With Quote
 
 
 
 
Keith Wilby
Guest
Posts: n/a
 
      10th Apr 2008
"FL" <(E-Mail Removed)> wrote in message
news:2DFEF178-63F5-49EC-9AAE-(E-Mail Removed)...
> Is it possible to password protect a form record once data entry has been
> made to prevent other users to modify information. I have a few users
> entering data into the same form. However, each user has ownership of
> his
> records and would rather others to view only or request permission to
> change
> the record from the owner of originator of record. Each user requires
> the
> ability to find and update any of their own records only. Each user
> requires the ability to view records created by others but not change them
> without permission.


You'll need to write some code to record the identity of the originator and
then test for that identity in the form's current event.

To record the user's identity, something like this in the form's before
update event:

Me.txtMyTextControl = CurrentUser

To test the record for the user's identity, something like this in the
form's current event:

If Me.txtMyTextControl = CurrentUser Then
Me.AllowEdits = True
Else
Me.AllowEdits = False
End If

This assumes that the CurrentUser property returns useful names but you
might want to consider using the network user ID instead. You'll probably
want to take care of the AllowDeletions property too.

Keith.
www.keithwilby.com

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Password protect a form =?Utf-8?B?b3hpY290dGlu?= Microsoft Access Queries 0 7th Feb 2007 11:27 PM
How to password protect a form MaryAnn Microsoft Access Forms 1 6th Apr 2006 12:20 AM
Password Protect Form =?Utf-8?B?U2VjcmV0IFNxdWlycmVs?= Microsoft Access 4 22nd Jan 2006 03:47 AM
How does one protect against subform adding record before main form has record? Chips Microsoft Access Forms 3 2nd May 2004 05:19 PM
Password protect a form JimBob Microsoft Access Forms 0 26th Apr 2004 06:54 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:39 PM.