Results 1 to 2 of 2
  1. #1
    Sketchin is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2012
    Posts
    1

    Macro to make record read-only

    Hello,



    I have an invoice form that I would like to add a "Make Read Only" button on. I would basically like to fill in the form, add the items in my sub-form, then lock the record so in the future nobody can come by and accidentally modify it.

    Is there a simple macro to do this? Either with a button, or when you exit the form?

    Thanks

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    As far as I know, there is no way, in a table, to set a lock on a record against editing. Use form and VBA code to control user interaction with data.
    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.

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

Similar Threads

  1. Button on a Form to make record read only
    By billgyrotech in forum Forms
    Replies: 8
    Last Post: 08-08-2011, 03:28 PM
  2. help to make a macro?
    By d3vil112 in forum Access
    Replies: 6
    Last Post: 05-08-2011, 12:55 AM
  3. Best way to make a query read only?
    By Remster in forum Queries
    Replies: 4
    Last Post: 12-17-2010, 04:36 AM
  4. Programmatically make queries read-only.
    By cementblocks in forum Queries
    Replies: 1
    Last Post: 05-14-2010, 10:13 PM
  5. Replies: 2
    Last Post: 10-19-2006, 04:37 PM

Tags for this Thread

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