Hello,
Part of my database contains procedures of automatically send emails. I notice that if Outlook is not running already, Access displays an error.
Therefore, I am now trying to get Access to check if Outlook is already running, and if not, run Outlook.
Unfortunately, I receive a Runtime Error 429 - Active component can't create object.
Here's the script:
Could someone points me to the right direction on why this is the case? I've been searching on the internet for a while but unable to find a solution.
Many thanks in advance.
Joe
Part of my database contains procedures of automatically send emails. I notice that if Outlook is not running already, Access displays an error.
Therefore, I am now trying to get Access to check if Outlook is already running, and if not, run Outlook.
Unfortunately, I receive a Runtime Error 429 - Active component can't create object.
Here's the script:
Code:
Dim appOutlook As Object
On Error GoTo Err_EmailRptOverDoc_Click
Set appOutlook = GetObject(, "Outlook.Application")
If TypeName(appOutlook) = "Nothing" Then
Set appOutlook = CreateObject("Outlook.Application")
End If
Could someone points me to the right direction on why this is the case? I've been searching on the internet for a while but unable to find a solution.
Many thanks in advance.
Joe