I am new to using objects in Access VBA. I want to open a specific Visio drawing from my database based on the value of one of my fields. I can open Visio itself and tell it where to look for the file with the following code:
Dim oApp As Object
Dim stLineNum As String
Dim stLinePath As String
stLineNum = Forms!lines![linenum]
stLinePath = "C:\Drawings\Lines\D” & stLineNum
Set oApp = CreateObject("Visio.Application"
oApp.Visible = True
On Error Resume Next
I’m stuck here because I’m not sure how to tell Visio which file to open. What methods are available for Visio? How do I find out the methods associated with any object?
Thanks,
Tony
Dim oApp As Object
Dim stLineNum As String
Dim stLinePath As String
stLineNum = Forms!lines![linenum]
stLinePath = "C:\Drawings\Lines\D” & stLineNum
Set oApp = CreateObject("Visio.Application"
oApp.Visible = True
On Error Resume Next
I’m stuck here because I’m not sure how to tell Visio which file to open. What methods are available for Visio? How do I find out the methods associated with any object?
Thanks,
Tony