Connecting Tech Pros Worldwide Help | Site Map

Writing to exchange contactitem fails

  #1  
Old November 12th, 2005, 10:22 PM
Jakob Gram
Guest
 
Posts: n/a
I'm updating exchange server from an access database using
outlook.application. It all runs just fine until I reach writing to the
email-fields. I can't set Email1Adress to a simple string. I get the error
"Object doesn't support this property or method"

MyItem.FullName = rstNavAfd!KassererNavn & " " &
rstNavAfd!KassererNavn2
MyItem.JobTitle = "Kasserer"
varLook = DLookup("E_mail", "navDebitor", "Nummer = '" &
rstNavAfd!KassererNummer & "'")
If (Not IsNull(varLook)) And varLook <> "" Then
MyItem.Email1Adress = varLook ' Here it goes
wrong !!!!
End If

Can anybody help?
regards
Jakob


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Writing to exchange contactitem fails Jakob Gram answers 0 November 12th, 2005 10:49 PM