PC Review


Reply
Thread Tools Rate Thread

How can I lock based on certain field?

 
 
=?Utf-8?B?QXJ0aHVyTWFpbGxvdXg=?=
Guest
Posts: n/a
 
      5th Sep 2006
I have created a database that has a form with subforms to enter data, all
based on an Incident_Number field. Incident_Number being the link for all
data tables.

In the main table to store all this data, I have a field for Status, either
Active, or Closed.

How can I make ALL rows with the same Incident_Number that have a Status of
"Closed" become read only for everyone except Administrator? Is this possible?
 
Reply With Quote
 
 
 
 
Scott McDaniel
Guest
Posts: n/a
 
      6th Sep 2006
On Tue, 5 Sep 2006 13:38:02 -0700, ArthurMailloux <(E-Mail Removed)> wrote:

>I have created a database that has a form with subforms to enter data, all
>based on an Incident_Number field. Incident_Number being the link for all
>data tables.
>
>In the main table to store all this data, I have a field for Status, either
>Active, or Closed.
>
>How can I make ALL rows with the same Incident_Number that have a Status of
>"Closed" become read only for everyone except Administrator? Is this possible?


This doesn't really have anything to do with Access Security, but here's a suggestion:

You can use the form's Current event to determine the status of a record:

Sub Form_Current()
Me.AllowEdits = (Me!status='Closed')
End Sub



Scott McDaniel
scott@takemeout_infotrakker.com
www.infotrakker.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
Lock field based on date =?Utf-8?B?SXRzQmFyYmFyYQ==?= Microsoft Access Getting Started 11 24th Mar 2006 02:18 PM
Can I limit and lock a word field (ab text field) ? =?Utf-8?B?SVQgVHJhaW5lcg==?= Microsoft Word Document Management 1 30th Jan 2006 03:08 PM
Can I lock a record based off two field values? =?Utf-8?B?Uks4MQ==?= Microsoft Outlook Form Programming 0 26th May 2005 06:51 PM
Lock fields based on another field value =?Utf-8?B?YWplYW4=?= Microsoft Access Forms 5 24th May 2005 07:35 PM
Return field values based on choice in previous field & fillin day based on date SueM Microsoft Access Database Table Design 1 16th Aug 2003 03:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:01 PM.