Code warning errors appear for some users but not others

A

adammfellows

Hi

I started developing a custom form some time ago and received a few
"Object not found" type errors when running it during the development
phase. These were fixed and all was fine.

I have been asked to make some amendments recently (adding new fields,
removing others etc) which I have done, and have run the form with no
errors. However, when certain users use the form they are getting
various code errors (object not found, type mismatch etc).

The problem is that I am not getting those errors so I cannot properly
test the form before publishing it each time. I am having to ask
users to tell me the line numbers in the error messages they get and
then fix them. I have been given a new PC here in the office since the
original development so I am wondering if there is some setting in
Outlook that has been changed so that warning messages are not
displaying when I run the form but are displaying for other people.
Is this the case or is there some other reason?

I appreciate your help.

Regards

Adam
 
S

Sue Mosher [MVP-Outlook]

If code isn't running at all -- as on a one-off form item -- you'd get no warning messages. There is setting to suppress warnings, though.
 
A

adammfellows

Hi Sue

The code definitely seems to be running, there are other things it
does that can be seen to have happened correctly. The form doesn't
seem to have been "one-offed".

What settings could suppress warning messages? Interestingly I have
just found through some testing that certain code messages do still
occur, namely Syntax errors. It just seems to be things like missing
objects.

Thanks for your help,

Adam
 
S

Sue Mosher [MVP-Outlook]

Sorry, I left out a "no" in my previous post. There is *no* setting to suppress warnings. The symptoms suggest there is something different about the other users' environment or data, compared with yours. Missing object errors generally reflect an erroneous assumption about whether a particular object will be available at runtime.

--
Sue Mosher, Outlook MVP
Author of Microsoft Outlook 2007 Programming:
Jumpstart for Power Users and Administrators
http://www.outlookcode.com/article.aspx?id=54


Hi Sue

The code definitely seems to be running, there are other things it
does that can be seen to have happened correctly. The form doesn't
seem to have been "one-offed".

What settings could suppress warning messages? Interestingly I have
just found through some testing that certain code messages do still
occur, namely Syntax errors. It just seems to be things like missing
objects.

If code isn't running at all -- as on a one-off form item -- you'd get no warning messages. There is setting to suppress warnings, though.
 

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