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

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.
 
P

perry

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top