
Originally Posted by
raweber
In Design View it tells me that the Data Type is "Hyperlink"
This is the problem. It is probably adding an http:// or something to the front of your string. Copy your table for a backup. Then, in your original table, change the field named Link to Text. Click OK for the warning. Then, check that you still have text that looks like \\COV-DOT-HRFile2\Groups\Traffic\Studies\AC\AC-0695-20150501-FT\
The fact that it used to work and then, when you edit a field, it does not work, has me concerned. You will want to analyze how the field was populated originally. Compare the difference between that (original process) and simply editing the text within.
Here is some code that I use within a Button Click event named ButtonName. The click event for the button name is the same as the button name in the line of code!
Code:
Me.ButtonName.HyperlinkAddress = "\\ServerName\FolderName\SubfolderName\FileName.Extension"
Me.ButtonName.HyperlinkAddress = "http://google.com"
Me.ButtonName.HyperlinkAddress = "C:\Test"
By doing it this way, you can avoid warnings when linking over the network. If you want to open a folder or file on your C drive, consider copying the file(s) to a share or sharing the folder on the C drive. Use the UNC path vs a drive letter (C: ).
It is best to use plain old text in your tables whenever possible. Obviously, use Integers, Doubles, Booleans, too. However, if it is alphanumeric, consider the Text data type first. My code example shows how you can adjust properties of a control in a form vs. adjusting properties in a field within a table. I try to keep my tables as pure as possible and use code to change stuff when needed.