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

    Disable And Enable

    During the past few years there was something in my development I tried, but failed so far.
    1.My development has more than 200 forms, each form has an "Enable Button", all forms are similar, see first image.
    2.I want every form when opened, not to allow editing or deleting by the normal capturer.
    3.When a user with permission click on "Enable" it must allow editing and deleting. No help needed now.
    4.The settings under the Data Tab on a form controls this.
    5.Every form in my app has the VBA as in Image 4, It set Allow Deletions and Edits = False.
    6.Clicking the Enable button then change Allow Additions and Edits = True. Which should allow the user to make changes now.



    Results required.
    1. Opening any form, edits and deletions should not be allowed on the form or Sub Form.
    2. Additions should be allowed.
    3. 1. After clicking "Enable", Edits and Deletions must be allowed on the Form and Sub Form.

    Image 1 = Form
    Image 2 = Data Tab of the Sub Form
    Image 3 = Data Tab of the Main Form
    Image 4 = VBA on the Main Form
    Click image for larger version. 

Name:	Z220701a.png 
Views:	22 
Size:	103.7 KB 
ID:	48193Click image for larger version. 

Name:	Z220701b.png 
Views:	22 
Size:	10.2 KB 
ID:	48194Click image for larger version. 

Name:	Z220701c.png 
Views:	22 
Size:	8.7 KB 
ID:	48195Click image for larger version. 

Name:	Z220701d.png 
Views:	22 
Size:	14.6 KB 
ID:	48196

  2. #2
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,412
    Is there a question?

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,114
    Might be a bit more than you're looking for but please feel free to download and review the code in my free utility that allows you to set up different access levels for you GUI (mainly forms and reports):
    http://forestbyte.com/ms-access-util...access-levels/

    Cheers,
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

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

Similar Threads

  1. Enable/disable control
    By skydivetom in forum Forms
    Replies: 2
    Last Post: 02-26-2020, 05:12 AM
  2. Enable disable function not working
    By jj1 in forum Access
    Replies: 5
    Last Post: 02-26-2015, 12:09 PM
  3. Enable/Disable Button
    By P.Malius in forum Programming
    Replies: 3
    Last Post: 09-07-2012, 08:36 AM
  4. Enable or Disable Field in Forum
    By lolos66666 in forum Forms
    Replies: 5
    Last Post: 03-13-2011, 05:30 PM
  5. Function to Enable/Disable Field
    By swalsh84 in forum Programming
    Replies: 5
    Last Post: 11-04-2010, 02:48 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