Solved

MailItem ReceivedTime property problem with Undeliverable messages

Posted on 2003-11-22
3
448 Views
Last Modified: 2012-08-14
Hi,

An app I'm developing needs to iterate through an Outlook folder checking for, among other things,  'Undeliverable' messages.

I've noticed that VBA throws an error if you try to retrieve the ReceivedTime property of an Undeliverable message.  Could anyone explain exactly why this is?  I can understand that these messages are slightly different from a standard email but they  still arrive at a specific time and this field can be displayed in Outlook.

Retreiving this property would prove a major advantage for my app.  Any suggestions/comments will be welcomed.

Cheers,
 
0
Comment
Question by:trident2
  • 2
3 Comments
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 35 total points
ID: 9804282
>>Could anyone explain exactly why this is? <<
Because they are not a mailitem.  Since you have your variable declared as mailitem it will fail.  You need to define it as Object.

Also, please let me know if you need help maintaining your old open questions:

1 05/24/2003 125 Simulating dial-up over broadband  Open Broadband
2 08/26/2003 50 Quarantine folders/drives in XP  Open Security
3 10/30/2003 75 Outlook always attempts to send mail via...  Open Microsoft Outlook
4 11/01/2003 125 VBA SQL doesn't recognise variable value  Open Applications

Thanks,
Anthony
0
 

Author Comment

by:trident2
ID: 9804429
Many thanks Anthony   - do these delivery notifications have a specific object type?

I've closed a couple of my old q's but the other's I haven't  received adequate or any replies to.  As I still don't know the answer myself what should I do? (I'm sure it's in the FAQs somewhere but couldn't find it)

Thanks again

A

0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 9804612
>>do these delivery notifications have a specific object type?<<
They should, but I don't recall, this was something I did over three years ago.

>>As I still don't know the answer myself what should I do?<<
To be honest with you the chances that someone will followup with a question that is nearly three months old is exactly 0.  After 21 days of inactivity questions are considered technically abandoned.

From the EE Guidelines:

<quote>
What are my choices?  
You have five choices when it comes to closing your open questions:

Accept an Expert's Comment as the Answer http://www.experts-exchange.com/help/closing.jsp#2
Accept Comments from more than one Expert (a Split) http://www.experts-exchange.com/help/closing.jsp#3
Request a refund because you answered your own question (Refund/PAQ) http://www.experts-exchange.com/help/closing.jsp#4
Request a refund because no one answered your question (Delete) http://www.experts-exchange.com/help/closing.jsp#5
Abandon your question and leave the mess for someone else to clean up http://www.experts-exchange.com/help/closing.jsp#12
</quote>

Anthony
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question