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
"djlansing" <(E-Mail Removed)> schreef in bericht
news:187DDB64-704C-4205-9183-(E-Mail Removed)...
> 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.
|