Alt+f4

Local time
Today, 04:19
Joined
Sep 29, 2003
Messages
25
I know you can diable the shiht for startup but now i need to know how to disable the ALT F4.

All help appreciated
 
Using Alt F4 is not an Access routine and cannot be disabled for Access, only. You cannot even use the AutoKeys to bypass it. You would be looking at disabling a Windows function that I would really not advise.

What is your motivation for doing this? Can you not use the OnClose event of a form to do whatever needs to be done before an application closes?
 
pdx_man said:
Using Alt F4 is not an Access routine and cannot be disabled for Access, only. You cannot even use the AutoKeys to bypass it. You would be looking at disabling a Windows function that I would really not advise.

What is your motivation for doing this? Can you not use the OnClose event of a form to do whatever needs to be done before an application closes?

You can disable this in Access.
It only affects the access app running.
 
pdx_man said:
Really?

How?

You do it at the form level..so it traps the alt f4.

I gather he's just making sure the end user doesnt try to exit out of access using alt f4. I had to do this on a specific application because the application was required to be closed by an event which deleted linked tables from various back ends. We did not want the links (objects themselves) to sit into this database because the data was very critical. Exiting the database prematurely using alt f4 would be a bummer to our process (this was a special case).

Use the keyboard keydown events to catch the alt f4 keys and cancel the operation.

Jon
 
Ah, very true.

However, if the user has a report with the focus, this will not work. The Alt+F4 isn't truely disabled, it is just captured when in Forms.
 
In the report's OnKey Event ...? :confused:

Uhhhh ...
 
Crilen007 said:
You should beable to code that as well.

You can...only if the report doesn't have the focus...
but the report has the focus. There is no key event for the reports.

What are the chances the poster is asking about this based on when a report is open :confused:
 
Rich said:

Ah, I see, your still using a system I believe was referred to as command prompt

Rich is running access on linux mandrake :p
 
What are the chances the poster is asking about this based on when a report is open
Very good, I'd say. I know my users will open a database just to run one report. They run it, and then close from there. I would say very rarely do they close the DB from the form ...
 
Linux ... I have a buddy who is anti MS. He spends so much time updating all of the libraries and loading this module and trying to find this thing and that thing. Hours he spends to keep his Linux box up and running. And he's been doing Linux for years. No thanks. I'll hit Ctrl-Alt-Del.
 
pdx_man said:
Linux ... I have a buddy who is anti MS. He spends so much time updating all of the libraries and loading this module and trying to find this thing and that thing. Hours he spends to keep his Linux box up and running. And he's been doing Linux for years. No thanks. I'll hit Ctrl-Alt-Del.

Does it for a reason...like it or not most servers run Linux.
Its stable and doesnt fail on a simple for loop in C++

:D
 
Personally I'm holding out for the keyboard that has an electric current that is completed only when the user presses the Alt+F4. :D
 
Definately on a web server ... only way to go. But for your home PC ... too much trouble.

Getting back to the topic on hand ... I think it is very likely for a user to close using Alt-F4 when looking at a report.
 

Users who are viewing this thread

Back
Top Bottom