FlagStatus question

S

Salad

I want to process some records and since an email may have been read or
unread, is the best way to process selected records is by using the
FlagStatus property?

Are the states of this property 0 (not set), 1 (completed), and 2
(incomplete)?
 
A

Alan Moseley

I am not quite clear what your question is. Each MailItem object has an
UnRead property if this is what you are looking for?
 
K

Ken Slovak - [MVP - Outlook]

The OlFlagStatus enum is olNoFlag (0), olFlagComplete (1) and olFlagMarked
(2).

Process for what? Why does unread or read have anything to do with the flag
status? As Alan mentioned you can use the Unread property if you want to
know read/unread status.
 
S

Salad

Ken said:
The OlFlagStatus enum is olNoFlag (0), olFlagComplete (1) and
olFlagMarked (2).

Process for what? Why does unread or read have anything to do with the
flag status? As Alan mentioned you can use the Unread property if you
want to know read/unread status.

Thanks Ken & Mark.

Sorry about the confusion. I shouldn't have mentioned read/unread
status in my original post.

I'm writing some VBA code that will be run from Access and read some
Outlook data. When iterating thru emails I knew about the read/unread
flag. But that wouldn't help me out much because emails I wanted to
process may have/havenot been read. I wanted to look at some other
method to know which emails to process and stumbled across FlagStatus.
It seemed to be a perfect method of determining if something should be
processed...similar to a Yes/No question in a survey. I'm a beginner in
Outlook programming. I'm so new to Outlook I wouldn't even know where
to find your constants you listed above (they weren't in the helpfile).
But since I now have them, I'll use them. Thanks.

One last thing, do you know if FlagStatus has been available in earlier
versions of Outlook...prior to Outlook 2003?
 
K

Ken Slovak - [MVP - Outlook]

FlagStatus is available in Outlook 2000, I don't have an earlier version
running here at the moment.
 

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