L
Liz O'Donoghue
Calling the following code from VBA:
appOutlook.createItem(olMailItem)
Results in:
Error #: 2147319779; automation error. Library not registered
Steps taken:
uninstalled and reinstalled outlook and access
Code runs great on two machines, but not the third, which has the
following software/os Versions:
Windows XP Professional v 5.1 2600_sp_qft (service pack 2)
access 2003 build 11.8166.8202 sp3
outlook 2003 build 11.8217.8202 sp3
Here is a snippet of code I'm trying to run:
strBCC = Left(strBCC, Len(strBCC) - 1)
'Create new mail message and send to contacts
Set msg = appOutlook.CreateItem(olMailItem)
With msg
.To = strTo
.Subject = strSubject
.Body = strBody
.BCC = strBCC
.Display
If Len(Trim(Me.attachLoc)) > 0 Then
.Attachments.Add Me.attachLoc.Value
End If
End With
Anyone seen anything like this? Anyone have any suggestions of how i
might proceed?
Thanks,
Liz
appOutlook.createItem(olMailItem)
Results in:
Error #: 2147319779; automation error. Library not registered
Steps taken:
uninstalled and reinstalled outlook and access
Code runs great on two machines, but not the third, which has the
following software/os Versions:
Windows XP Professional v 5.1 2600_sp_qft (service pack 2)
access 2003 build 11.8166.8202 sp3
outlook 2003 build 11.8217.8202 sp3
Here is a snippet of code I'm trying to run:
strBCC = Left(strBCC, Len(strBCC) - 1)
'Create new mail message and send to contacts
Set msg = appOutlook.CreateItem(olMailItem)
With msg
.To = strTo
.Subject = strSubject
.Body = strBody
.BCC = strBCC
.Display
If Len(Trim(Me.attachLoc)) > 0 Then
.Attachments.Add Me.attachLoc.Value
End If
End With
Anyone seen anything like this? Anyone have any suggestions of how i
might proceed?
Thanks,
Liz