graviz
Registered User.
- Local time
- Today, 01:58
- Joined
- Aug 4, 2009
- Messages
- 167
Is there a way to open a database (C:\Email Attachments\Test.mdb) when a rule in Outlook is triggered? I've seen you can call a Script but I don't know where to input one, nor how to write such a script. So basically a few questions:
1. Where do I input the script? (The vba editor?) If so I tried to do a function and save it but I didn't see it listed. Below is what I tried to do:
Public Function ODB()
Dim LPath As String
Dim LCategoryID As Long
LPath = "C:\Email Attachments\Test.mdb"
Set oApp = CreateObject("Access.Application")
oApp.Visible = True
oApp.OpenCurrentDatabase LPath
End Function
2. Can anyone please assist me with this basic script to open the DB above?
Thanks
1. Where do I input the script? (The vba editor?) If so I tried to do a function and save it but I didn't see it listed. Below is what I tried to do:
Public Function ODB()
Dim LPath As String
Dim LCategoryID As Long
LPath = "C:\Email Attachments\Test.mdb"
Set oApp = CreateObject("Access.Application")
oApp.Visible = True
oApp.OpenCurrentDatabase LPath
End Function
2. Can anyone please assist me with this basic script to open the DB above?
Thanks