Disabling the X, Min, Max for a form is a simple property setting.
Disabling the Access app File ribbon buttons and Quick Access Toolbar is more complicated than just some settings for a single form. This is modifying the ribbon and app backstage - very tricky. For most everything you want to know about ribbon customization, review https://www.accessribbon.de/en/
Disabling the Access app X close can be done with VBA.
Code:
Option Explicit
'API function to disable Access application X Close button
Private Declare PtrSafe Function GetSystemMenu Lib "user32" (ByVal hwnd As Long, ByVal wRevert As Long) As Long
Private Declare PtrSafe Function EnableMenuItem Lib "user32" (ByVal hMenu As Long, ByVal wIDEnableItem As Long, ByVal wEnable As Long) As Long
Public Sub SetAccessXCloseButton(pfEnabled As Boolean)
' Comments: Control the Access X close button.
' Disabling it forces the user to exit within the application
' In : pfEnabled TRUE enables the close button, FALSE disables it
' Owner : Copyright (c) 2008-2009 from FMS, Inc.
' Source : Total Visual SourceBook
' Usage : Permission granted to subscribers of the FMS Newsletter
On Error Resume Next
Const clngMF_ByCommand As Long = &H0&
Const clngMF_Grayed As Long = &H1&
Const clngSC_Close As Long = &HF060&
Dim lngWindow As Long
Dim lngMenu As Long
Dim lngFlags As Long
lngWindow = Application.hWndAccessApp
lngMenu = GetSystemMenu(lngWindow, 0)
If pfEnabled Then
lngFlags = clngMF_ByCommand And Not clngMF_Grayed
Else
lngFlags = clngMF_ByCommand Or clngMF_Grayed
End If
Call EnableMenuItem(lngMenu, clngSC_Close, lngFlags)
End Sub