MaxScott
02-09-2021, 05:45 AM
Hi
I am trying to find emails based on a given receivedtime. I am currently using this..
filtertext = "[Receivedtime] = '" & Format(xreceivedtime, "ddddd hh:mm:dd") & "'"
Set oitem = ofolder.Items.Find(filtertext)
where xreceivedtime is the time of the email I'm looking for.
But that doesn't work. I suspect - but am not sure - it is do with how I format the receivedtime in the filtertext expression.
Thanks
Max
I am trying to find emails based on a given receivedtime. I am currently using this..
filtertext = "[Receivedtime] = '" & Format(xreceivedtime, "ddddd hh:mm:dd") & "'"
Set oitem = ofolder.Items.Find(filtertext)
where xreceivedtime is the time of the email I'm looking for.
But that doesn't work. I suspect - but am not sure - it is do with how I format the receivedtime in the filtertext expression.
Thanks
Max