J
JIM
Hi all, I have a command button on a subform. Which clicked I want to print
out a word document whose path and name is in textbox. So far I'm just
opening form in code but I can't get it to work. Here's code so far:
Private Sub Option60_Click()
Dim str As String
str = [Me!txtRoofPlanLoc] 'this is name of control that contains
path
Application.FollowHyperlink str
On Error GoTo ErrOption60
MsgBox "You are trying to open " & vbCrLf & str
Exit_Option60_Click:
Exit Sub
ErrOption60:
MsgBox Err.Description
Resume Exit_Option60_Click
End Sub
I even added message box to see what it's trying to open but message box
doesn't appear. So for some reason I'm not even getting to message. I
checked - the event coding is on the on click event. What am I missing?
Thanks, JIM
out a word document whose path and name is in textbox. So far I'm just
opening form in code but I can't get it to work. Here's code so far:
Private Sub Option60_Click()
Dim str As String
str = [Me!txtRoofPlanLoc] 'this is name of control that contains
path
Application.FollowHyperlink str
On Error GoTo ErrOption60
MsgBox "You are trying to open " & vbCrLf & str
Exit_Option60_Click:
Exit Sub
ErrOption60:
MsgBox Err.Description
Resume Exit_Option60_Click
End Sub
I even added message box to see what it's trying to open but message box
doesn't appear. So for some reason I'm not even getting to message. I
checked - the event coding is on the on click event. What am I missing?
Thanks, JIM