Turn off errors on form

G

Guest

I have turned off the warnings on an Acc97 form, however, the users are still
getting runtime messages - like
You can't assign a value to this object
You can not enter a value in this field
Invalid error

Any suggestions
 
G

Guest

Not a very good idea, but it can be done. How you do it will depend on what
you want to happen when an error is encountered.
The easiest way is to put this line of code at the beginning of each
procedure:
On Error Resume Next

If you do this, then all errors will be ignored and the code will try to
continue processing on the next line of code after the line that generated
the error. Because an error may cause objects and variables to have
incorrect values or be non existant, you may get unpredictable results and
things not working as expected.

The other is to include an error routine in each procedure that does nothing
more than exit the procedure. The same problems as stated above will occur
plus some of the code will not execute and make the problem worse.

In reality, this is a very bad idea. You really need to know when errors
happen and what they are so you can correct the problem.
 
J

John Vinson

I have turned off the warnings on an Acc97 form, however, the users are still
getting runtime messages - like
You can't assign a value to this object
You can not enter a value in this field
Invalid error

Any suggestions

Fix the errors.

You can turn off the messages but doing so will not keep the *errors
themselves* from happening! You'll end up with missing data, a corrupt
database, lockups, frustrated users... surely you don't want that!


John W. Vinson[MVP]
 

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