PC Review


Reply
Thread Tools Rate Thread

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

 
 
djlansing
Guest
Posts: n/a
 
      22nd Jul 2008
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.
 
Reply With Quote
 
 
 
 
perry
Guest
Posts: n/a
 
      22nd Jul 2008
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.


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Disable or remove the close button in Access 2007 Mr B Microsoft Access VBA Modules 2 26th Dec 2008 02:14 PM
Disable Access 2007 close button at upper right corner Song Su Microsoft Access VBA Modules 2 7th Sep 2008 07:31 PM
Disable Application Close Button in Access 2003 KenR Microsoft Access VBA Modules 5 5th Sep 2008 08:15 PM
Disable close button in Access 2007 =?Utf-8?B?bWFyaWE=?= Microsoft Access 0 8th Mar 2007 09:40 PM
[Access 2007] Problem to disable the Close Button (X) on the Access Application Window David Berthemet Microsoft Access 0 28th Feb 2007 11:33 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:01 AM.