G
Guest
i have some really simple code on a button on my form that adds a hyperlink
to the field that i need it to and this button works for the times when a
user will select something in the dialog and then hits insert. but when a
user clicks cancel it gets a little trickier. how can i modify the code below
to make the cancel not cause an error?
Private Sub btnAddElectricalDiaLink_Click()
Me.ElectricalDiagrams.SetFocus
RunCommand acCmdInsertHyperlink
End Sub
thanks for the help
to the field that i need it to and this button works for the times when a
user will select something in the dialog and then hits insert. but when a
user clicks cancel it gets a little trickier. how can i modify the code below
to make the cancel not cause an error?
Private Sub btnAddElectricalDiaLink_Click()
Me.ElectricalDiagrams.SetFocus
RunCommand acCmdInsertHyperlink
End Sub
thanks for the help