Results 1 to 6 of 6
  1. #1
    Perfac's Avatar
    Perfac is offline Expert
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618

    Enabling and Disabling edditing

    I want to keep the form sort of read only, but when I try to add a new record via access command buttons
    When I click on the Add Record command button
    Then I get the message that "you can't go to the specified record"


    currently using recordset type : Snapshot

    The end result I'm looking for is locking editing in the Detail section and allowing editing and command buttons within the header or footer

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    to edit, recset type must be dynaset
    set form properties:
    allow edits = false

    then put an edit button in header, to turn on edits:
    me.allowEdits = true

  3. #3
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,159
    Just to clarify - A snapshot recordset is not updateable.
    It's a read only snapshot of your data at the time the recordset is opened.
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

  4. #4
    Perfac's Avatar
    Perfac is offline Expert
    Windows 7 64bit Access 2016
    Join Date
    May 2016
    Location
    Centurion Pretoria
    Posts
    618
    "Allow Edits = False" Causes the text fields and combo boxes within the header/Footer to be unable for editing and I'm looking for a way to separate the way the form is locked
    I want only the Detail Section to be read only and in the header/Footer I want to be able to use combo boxes and text fields.

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    You NEVER want user to edit or add record directly in the Detail section? Set each control as Locked Yes and TabStop No.

    Or perhaps use a Split form.
    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.

  6. #6
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    then you must lock individ fields.

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

Similar Threads

  1. field enabling and disabling
    By koncreat in forum Forms
    Replies: 16
    Last Post: 02-13-2017, 10:05 PM
  2. Enabling and Disabling Buttons on a Form.
    By Slurry Pumper in forum Forms
    Replies: 10
    Last Post: 11-14-2016, 10:07 AM
  3. Enabling and disabling fields
    By SgtSaunders69 in forum Programming
    Replies: 9
    Last Post: 12-27-2011, 06:11 PM
  4. Disabling and Enabling subforms
    By vt800c in forum Programming
    Replies: 3
    Last Post: 05-24-2011, 07:37 AM
  5. Enabling Disabling Combo Boxes from Values
    By vdanelia in forum Forms
    Replies: 3
    Last Post: 02-04-2011, 10:09 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