Linking field to form

kjh

New member
Local time
Yesterday, 19:58
Joined
Jan 26, 2012
Messages
9
I am new to the forum and not really a code writer. I have copied the following code that uses the hyperlink function to connect a Field with a file stored on a server:

Private Sub Photo_Click()
Photo.HyperlinkAddress = "F:\Photos\InProcessPhotos\" & RepairOrderID.Value

End Sub

It works but only if the file name in the photos folder matches exactly. Is there a way to have the code look at just the first 5 characters and ignore the rest. that way I can put some more descriptive names to the file. Example is current file name = 25696, and I want it to return a file named 25696Red2010Porche.

Thank you
 
Sure, but why save them as one field in the first place?
 

Users who are viewing this thread

Back
Top Bottom