I'm writing some code for another company to create and send task
items. Part of the code looks for existing task items and deletes them.
Problem is when the user is tries to resolve someone else's username and
get the shared default taskitem folder. I'm getting a runtime error
"Operation Failed". I can't for the life of me figure out why! If the
user inputs their own name as the recipient, works fine.
Here's the applicable snippet of code:
Dim rs As Recordset
Dim UserName As Recipient
Set rs = CurrentDb.OpenRecordset("users")
Do Until .EOF
Set UserName = myNS.CreateRecipient(!Recipients) '!Recipients
'represents a database of user names
If UserName.Resolved Then
Set myFolder = myNS.GetSharedDefaultFolder(UserName,
olFolderTasks) 'here's where it crashes
' do some stuff
Is there a way to list all the possible recipients for the network?
(there are only about 12 people)? I don't think I've got the usernames
wrong, and I've tried every possible permutation of name possible!
So why does it fail when assigning recipient to a user besides the
I'm at my wit's end....
many thanks for your patience,
Sent via Deja.com http://www.deja.com/
Before you buy.