su********@gmail.com wrote:
hi salad
Thanks for the reply. well i used the same function for open/save
dialog and then created an onclick procedure for my button :
Private Sub AddaFile_Click()
Me.YourTextBoxName = GetOpenFile(CurrentProject.Path, "Select Source
File")
End Sub
and then i created one more onclick procedure for my textbox which was
something like this:
Private Sub Attachments_Click()
Application.FollowHyperlink (Attachments & "#" & txtLOC & "#")
End Sub
it work fine for me now. came to know that for some reason you need to
have a # sign at the begining and at the end. but i will try tomorrow
the hyperlink function you posted so then i can learn more about it.
Thanks for the reply.
salad wrote:
>>su********@gmail.com wrote:
GREAT!
Now here's an issue. I was grabbing info, let's say a subject line, for
the link's display text. Something like
"Progress Report" and the filename was
C:\Test\Job# 123.Txt
Guess what? That # invalidated my hyperlink. I knew that asking people
to not include # in filenames would be futile. So I wrote a routine to
strip out # in filenames and would copy the filename to the newfile name
without #. Then I could do the "Hit Me#Job 123.txt#" for the hyperlink.
Basically, hyperlinks are a modified memo file (read this from Michael
Kaplan) and the # symbol was used to delineate the display text, the
file name, and range. So make sure you aren't using #'s in filenames.