Hello,
Been using this site for awhile now to learn best I can. However, I've run into an issue when trying to create a button to add a hyperlink to a subform.
I'd like the button to add a new record to the subform, open the Hyperlink Dialoge Box, and then tie that new record to the Master Form.
Whenever I run the below code, it will allow me to add a new Hyperlink, however it does not tie it to the Master form. The interesting thing, is if I end the code after the hyperlink dialogue box has launched and rerun the code, it will work properly (essentially starting from a "blank" record on the Master Form)
Any help would be greatly appreciated,
Thanks!
Toluene
Been using this site for awhile now to learn best I can. However, I've run into an issue when trying to create a button to add a hyperlink to a subform.
I'd like the button to add a new record to the subform, open the Hyperlink Dialoge Box, and then tie that new record to the Master Form.
Whenever I run the below code, it will allow me to add a new Hyperlink, however it does not tie it to the Master form. The interesting thing, is if I end the code after the hyperlink dialogue box has launched and rerun the code, it will work properly (essentially starting from a "blank" record on the Master Form)
Code:
Me.[SubForm].SetFocus
Me.[SubForm]![HyperlinkObject].SetFocus
DoCmd.GoToRecord , , acLast
DoCmd.GoToRecord , , acNext
DoCmd.RunCommand acCmdInsertHyperlink
Thanks!
Toluene