Results 1 to 3 of 3
  1. #1
    snapjuice is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Location
    NH
    Posts
    1

    how to prevent accidental deletion in existing records?


    I am using the contacts list database that was offered through Access 2010.
    I would like to prevent accidental deletion on existing records/fields.

    How do I prevent edits to a field or a record?

    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,902
    For starters:

    1. Don't let users work directly with tables and queries.

    2. Use code to handle when keyboard delete key is pressed.

    3. Set form AllowDeletions property to No and control Locked property to Yes.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    aldridge_p is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Feb 2012
    Posts
    12
    To add to June's help...

    One of the properties available on form controls (Controls are fields, check box's etc) is 'Locked'

    You can change the 'Locked' property when the form is in design view. Changing the value of 'Locked' from No to Yes will mean that edits can't be made through that control.

    This can be useful when you have certain controls that you want to be 'display only' and certain controls which the user should be able to edit.

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

Similar Threads

  1. Replies: 1
    Last Post: 01-04-2012, 01:39 PM
  2. Replies: 3
    Last Post: 10-14-2011, 08:52 AM
  3. Access 2007 - Creating New Records Based on Existing Records
    By GeorgeAugustinePhillips in forum Forms
    Replies: 9
    Last Post: 10-05-2011, 05:58 PM
  4. Replies: 2
    Last Post: 02-12-2011, 09:54 PM
  5. Prevent Users from Deleting Records
    By DocOrganizer in forum Access
    Replies: 15
    Last Post: 11-30-2010, 02:57 PM

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