S
saj2004
I have a command button on my form that when clicked opens the insert
hyperlink dialog box. That works fine. The problem is when I click Cancel and
decide not to insert a hyperlink I get "Error 2501" I was wondering how I fix
my code to handle that error.
Here is my code for the button
Private Sub Command108_Click()
Me.[Attachments1].SetFocus
RunCommand acCmdInsertHyperlink
End Sub
Any help would be greatly appreciated. Thank you!
hyperlink dialog box. That works fine. The problem is when I click Cancel and
decide not to insert a hyperlink I get "Error 2501" I was wondering how I fix
my code to handle that error.
Here is my code for the button
Private Sub Command108_Click()
Me.[Attachments1].SetFocus
RunCommand acCmdInsertHyperlink
End Sub
Any help would be greatly appreciated. Thank you!