Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get the last item in the outlook sent items folder

Status
Not open for further replies.

jeep2001

Programmer
Dec 15, 2005
134
US
When a user sends an email (from my application), I would like to be able to write it to a table. I have a routine that takes everything in the sent items folder and writes it to a table, but thats not what i want. I want the most recent item in the folder to take for my table.
Any ideas...Thanks
 
Modify your routine to:[ol]
[li]Cycle through the Sent Item folder to deterine the most recent item.[/li]
[li]Then move only the identified item.[/li][/ol]

All the pieces and parts should be in your routine, just sepreate the search and the move into two seperate steps.

Hope this helps,
CMP

(GMT-07:00) Mountain Time (US & Canada)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top