Results 1 to 4 of 4
  1. #1
    Eranka is offline Competent Performer
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Posts
    150

    Disabling The Close Button

    Hi All



    Click image for larger version. 

Name:	Untitled.jpg 
Views:	7 
Size:	3.8 KB 
ID:	32340

    Please see above image. i have boxed a area in red (close button) how do i disable the close button in access?

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,144
    You can disable it on a form in the properties.
    Assuming you mean the close X on the Access.Exe application, You would need a windows api call to disable it from the access program. Bear in mind that someone could still press Alt + F4 to close the active application.

    There is code here that I think achieves what you want https://access-programmers.co.uk/for...d.php?t=250502
    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 ↓↓

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Here's a link to a few suggestions: http://www.accessmvp.com/JConrad/acc...osebutton.html

  4. #4
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,549
    can you really 'disable' it?
    since you can close a form via:

    • the right corner X,
    • Alt-F4
    • Ctl-F4
    • right-click Close
    • quick Access toolbar Close button
    Last edited by ranman256; 01-23-2018 at 10:55 AM.

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

Similar Threads

  1. Replies: 2
    Last Post: 02-22-2016, 02:49 PM
  2. Replies: 4
    Last Post: 11-11-2013, 08:39 AM
  3. disabling an enabled button that has been clicked.
    By aaron47 in forum Programming
    Replies: 3
    Last Post: 08-26-2011, 09:49 AM
  4. Disabling A Button
    By cksm4 in forum Programming
    Replies: 8
    Last Post: 10-05-2010, 02:07 PM
  5. Replies: 5
    Last Post: 08-06-2009, 11:47 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