Outlook error codes - they change on repetition of same error

M

mark.lay

This is wierd..

The error I'm trying to trap is when the start date for
an appointment is later than it's end date.

Doing this line of code:

mobjAppointmentItem.Save

Will throw a different error number every time it is
execute, making it impossible for me to trap in the event
associated with my custom functionality.

However, if i simply press 'save and close' on the
appointment dialogue, Outlook correctly traps this error
and shows a sensible error msgbox.

How does Outlook that? and how can I?

Thanks, Mark
 

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