How do I hyperlink to an ".apr" Arcview file on a commmand button? Path to arcview.exe then add parater with path to ".apr" file? Not sure, could use some help here.
I would use the ShellExecute API. This way the access program can be used on any computer with arcview installed without using the exact path to arcview.exe.
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
private sub button_click()
Private Const SW_SHOWNORMAL = 1
ShellExecute Me.hwnd, vbNullString, "any_apr_file.apr", vbNullString, "C:\", SW_SHOWNORMAL
end sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.