PC Review


Reply
Thread Tools Rate Thread

Access - permission to change by record

 
 
Linda
Guest
Posts: n/a
 
      27th Aug 2009
I have developed a database to keep track of projects, in the record there is
a field with the contact person's name, can I make it so only that person can
modify that record?
 
Reply With Quote
 
 
 
 
Tom van Stiphout
Guest
Posts: n/a
 
      28th Aug 2009
On Thu, 27 Aug 2009 07:51:01 -0700, Linda
<(E-Mail Removed)> wrote:

Yes. The exact solution depends on if you already know who is logged
in. Say that you know that, and that this value is in a global
variable g_strLoggedInUser.
Then you can use this one-liner in the Form_Current event:
Me.AllowEdits = (Me!myContactPersonNameField = g_strLoggedInUser)
(of course you change myObjectNames to yours)
What this does is set AllowEdits to True or False, based on if the
value in your record is the logged-in user.

-Tom.
Microsoft Access MVP



>I have developed a database to keep track of projects, in the record there is
>a field with the contact person's name, can I make it so only that person can
>modify that record?

 
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
When Change In Data Add Record in Access dawn_dudley Microsoft Access Queries 9 4th Sep 2008 08:30 PM
Folder / File permissions with modify access can change permission =?Utf-8?B?MVRlY2g=?= Microsoft Windows 2000 0 11th Dec 2004 12:37 AM
permission denied when deleting record but record still deleted =?Utf-8?B?QW5uIFZsbmE=?= Microsoft Access 0 10th Dec 2004 04:45 PM
can't change client access permission Terry Mitchell Microsoft Windows 2000 Networking 0 22nd Oct 2003 10:36 AM
You might not have permission to use this network resource. Contact the administrator of this server to find out if you have access permission. Manoj Keswani Windows XP Networking 1 4th Oct 2003 03:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:41 PM.