Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set Hyperlink from VBA Command Button

Status
Not open for further replies.
May 5, 2002
79
US
All,

Searched the archives but no joy. Anyway I have a command button that executes the following code (basically picking a file and location and assigning it to the txtDocLocation fiedl).

Me![txtDocLocation] = GetOpenFile_CLT("C:\", "Select Document Location")
Me![txtDocLocation] = LCase(Me![txtDocLocation])

The txtDocLocation field has been defined in the table. Based upon my review of hyperlinks I think I need to set multiple values. What is the code that would set these values so that when you double clicked on the txtDocLocation field the file (word, excel, etc.) will open?

Many thanks for the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top