How do I disable the Access Application Close button in 2007.

  • Thread starter Thread starter djlansing
  • Start date Start date
D

djlansing

The code I was using for Access 2003 is not working in Access 2007.

My 2003 code:
Function InitApplication()
Dim c As CloseCommand
Set c = New CloseCommand
' Disable Close menu
c.Enabled = False
End Function
This was ececuted with the Autoexec macro.
 
With this code present in yr Access 2007 VBA project, have you tried to
compile the VBA project?
Is the VBA clause "Option Explicit" raised on top of yr module?

Krgrds,
Perry
 
Back
Top