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 ↓↓
Here's a link to a few suggestions: http://www.accessmvp.com/JConrad/acc...osebutton.html
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.