Application settings in Access Runtime

Tiger955

Registered User.
Local time
Today, 21:52
Joined
Sep 13, 2013
Messages
140
Hi!

In a startup-form I have following options to avoid annoying system messages in an ACCESS 2010 RUNTIME!! (.accdr)

Application.SetOption "Confirm Action Queries", 0
Application.SetOption "Confirm Document Deletions", 0
Application.SetOption "Confirm Record Changes", 0

But they do not work, there are still messages when deleting a record from an endless form by pressing "delete". I don't want to add a button for that just to avoid this behavior by
Docmd.Setwarning false in every form!

Any idea, how to solve this?

Thanks a lot!

Michael
 
I solved the problem by myself:
creating a public function, adding
Application.SetOption "Confirm Action Queries", 0
Application.SetOption "Confirm Document Deletions", 0
Application.SetOption "Confirm Record Changes", 0

into it, and calling this function in the Autoexec!

It works.

Why it does not work from the Form_load of the Startup-form is unclear for me...
Michael
 

Users who are viewing this thread

Back
Top Bottom