Help with NSFSearch Formula to Retrieve ParentID

I think you have a separate forum post here that is similar to this recent query:

I believe you need to go loop through the dwEntriesReturned in order for you to check the status of each returned NoteID if it has unread or read marks.