Results 1 to 3 of 3
  1. #1
    KevinMCB is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    29

    Lock Down

    Hey everyone. Quick question for all you form guru's. I know that is possible to set text boxes (fields) to read-only in a form. However, I would like to take it a step further. Say I have an inventory item that has a status field with a drop down arrow providing entries of "Active", "Incoming", and "Paid". These items have ID numbers, year made, etc. Is it possible to make all the entries that have been selected as "Paid" as read-only except of the status field?

    So each entry is locked down except for the status field. So no way to edit it once the status has been changed to Paid? Thanks!

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    If you won't be modifying the records that are "paid" then just dont retreive them. Set your query to pull everything WHERE status <> "Paid". Once a record gets changed to paid, have the form requery and it will be gone.

    Outside of that, I dont know of a method to conditionally lock a record.

  3. #3
    KevinMCB is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2010
    Posts
    29
    That is a good idea, but I already have some buttons at the top to filter the status of each unit. So the active units show up first, then I can push a button to show the paid units or another button to show the incoming units. I like it that way so the history is viewable for the user in the form in case a mistake is made.

    The more I look at this I think what I am trying to do is not possible. I can't make the form read-only because the user needs to be able to make changes to units in it, but would like to take away the ability to make changes to the paid units, other than the status field, so if a mistake is made they can change it back to active and make the corrections to the database. However looking in the properties sheet I do not think there is any way to do it.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Exclusive access/DB lock
    By Boru in forum Access
    Replies: 18
    Last Post: 07-28-2014, 01:38 AM
  2. How to TRULY lock access to tables
    By is49460 in forum Security
    Replies: 20
    Last Post: 02-01-2013, 03:41 PM
  3. Lock back-end DB with VBA
    By somm in forum Programming
    Replies: 5
    Last Post: 12-31-2010, 01:38 AM
  4. File Sharing Lock Exceeded
    By creditman in forum Access
    Replies: 1
    Last Post: 07-15-2010, 09:49 AM
  5. Automatically Lock Fields
    By Toolman in forum Database Design
    Replies: 2
    Last Post: 05-27-2010, 10:36 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums