Please Help! Easy One Hyperlinks

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Afternoon all,
I have a command button that opens a hyperlink field that relates to a
record, if the record doesn't have a hyperlink then a message box appears
saying would you like to create one yes or no. If yes is clicked then a blank
template document is opened.

Here's the problem, if I click on a record that has a hyperlink and then
view a different record that doesn't then the previous records hyperlink is
still stored in the Hyperlink Address property of the button. Therefore it
opens both blank template and previous hyperlink.
There must be an easy solve to this one i.e. code that says clear hyperlink
address field before start!!!???
Your help is greatly appreciated!
 
From A. Smart :
Afternoon all,
I have a command button that opens a hyperlink field that relates to a
record, if the record doesn't have a hyperlink then a message box appears
saying would you like to create one yes or no. If yes is clicked then a blank
template document is opened.

Here's the problem, if I click on a record that has a hyperlink and then
view a different record that doesn't then the previous records hyperlink is
still stored in the Hyperlink Address property of the button. Therefore it
opens both blank template and previous hyperlink.
There must be an easy solve to this one i.e. code that says clear hyperlink
address field before start!!!???
Your help is greatly appreciated!

Clear the property on the Form_Current
 
Back
Top