Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

hyperlink in form

Discussion in 'Information Technology' started by Aaron Daniels, Nov 15, 2005.

Tags:
  1. Aaron Daniels

    Aaron Daniels
    Expand Collapse
    Guest

    I am trying to create a Hyperlink field in a form that opens documents in a
    certain
    folder
    j:\werners\hr_secured\resumes
    and allows her to type in the name of the document in the form to complete
    the link. If the document was named "test.pdf", I'd like for her to be able
    to type in "test.doc" in the field and have it link to
    j:\werners\hr_secured\resumes\test.pdf when she clicks on it. Help would be
    greatly appreciated!!!!!!!
     
  2. Loading...


  3. [MVP] S.Clark

    [MVP] S.Clark
    Expand Collapse
    Guest

    Use a mapped drive letter with caution, as it may change, then your app
    breaks.

    Use UNC: \\servername\folder\filename.ext

    A hyperlink is just a Label control, with the Hyperlink Address set to a
    value. So, using some event, like the Form's OnCurrent, you can update the
    label to display whatever you need.

    --
    Steve Clark, Access MVP
    http://www.fmsinc.com/consulting
    *FREE* Access Tips: http://www.fmsinc.com/free/tips.html

    "Aaron Daniels" <AaronDaniels@discussions.microsoft.com> wrote in message
    news:F2BB31A4-968B-4C74-9CEE-5BB3BB1D8B36@microsoft.com...
    >I am trying to create a Hyperlink field in a form that opens documents in a
    > certain
    > folder
    > j:\werners\hr_secured\resumes
    > and allows her to type in the name of the document in the form to complete
    > the link. If the document was named "test.pdf", I'd like for her to be
    > able
    > to type in "test.doc" in the field and have it link to
    > j:\werners\hr_secured\resumes\test.pdf when she clicks on it. Help would
    > be
    > greatly appreciated!!!!!!!
    >
     
  4. Aaron Daniels

    Aaron Daniels
    Expand Collapse
    Guest

    Even with the unc I am having problems, can you send me an example of how you
    set it up. Right now I am using
    Dim DocLocationAndName as String
    DocLocationAndName = "\\optimus\FDA_team\werners\hr_secured\resumes\" &
    Me.[TextFieldName]
    application.FollowHyperlink DocLocationAndName

    I got it working on one form, but when I tried it on the next form it
    wouldn't work.

    "[MVP] S.Clark" wrote:

    > Use a mapped drive letter with caution, as it may change, then your app
    > breaks.
    >
    > Use UNC: \\servername\folder\filename.ext
    >
    > A hyperlink is just a Label control, with the Hyperlink Address set to a
    > value. So, using some event, like the Form's OnCurrent, you can update the
    > label to display whatever you need.
    >
    > --
    > Steve Clark, Access MVP
    > http://www.fmsinc.com/consulting
    > *FREE* Access Tips: http://www.fmsinc.com/free/tips.html
    >
    > "Aaron Daniels" <AaronDaniels@discussions.microsoft.com> wrote in message
    > news:F2BB31A4-968B-4C74-9CEE-5BB3BB1D8B36@microsoft.com...
    > >I am trying to create a Hyperlink field in a form that opens documents in a
    > > certain
    > > folder
    > > j:\werners\hr_secured\resumes
    > > and allows her to type in the name of the document in the form to complete
    > > the link. If the document was named "test.pdf", I'd like for her to be
    > > able
    > > to type in "test.doc" in the field and have it link to
    > > j:\werners\hr_secured\resumes\test.pdf when she clicks on it. Help would
    > > be
    > > greatly appreciated!!!!!!!
    > >

    >
    >
    >
     
  5. [MVP] S.Clark

    [MVP] S.Clark
    Expand Collapse
    Guest

    It appears to me that you didn't use any of the properties that I mentioned
    previously, rather solved it with a different method.

    I typically use the Shell function to open documents, so I'm not familiar
    with the Application.FollowHyperlink method. But, if you got it to work
    once, then you know it works, and you just need to replicate.

    --
    Steve Clark, Access MVP
    http://www.fmsinc.com/consulting
    *FREE* Access Tips: http://www.fmsinc.com/free/tips.html

    "Aaron Daniels" <AaronDaniels@discussions.microsoft.com> wrote in message
    news:16FB2A6B-A62B-4DC6-BC4E-45625D13EC46@microsoft.com...
    > Even with the unc I am having problems, can you send me an example of how
    > you
    > set it up. Right now I am using
    > Dim DocLocationAndName as String
    > DocLocationAndName = "\\optimus\FDA_team\werners\hr_secured\resumes\" &
    > Me.[TextFieldName]
    > application.FollowHyperlink DocLocationAndName
    >
    > I got it working on one form, but when I tried it on the next form it
    > wouldn't work.
    >
    > "[MVP] S.Clark" wrote:
    >
    >> Use a mapped drive letter with caution, as it may change, then your app
    >> breaks.
    >>
    >> Use UNC: \\servername\folder\filename.ext
    >>
    >> A hyperlink is just a Label control, with the Hyperlink Address set to a
    >> value. So, using some event, like the Form's OnCurrent, you can update
    >> the
    >> label to display whatever you need.
    >>
    >> --
    >> Steve Clark, Access MVP
    >> http://www.fmsinc.com/consulting
    >> *FREE* Access Tips: http://www.fmsinc.com/free/tips.html
    >>
    >> "Aaron Daniels" <AaronDaniels@discussions.microsoft.com> wrote in message
    >> news:F2BB31A4-968B-4C74-9CEE-5BB3BB1D8B36@microsoft.com...
    >> >I am trying to create a Hyperlink field in a form that opens documents
    >> >in a
    >> > certain
    >> > folder
    >> > j:\werners\hr_secured\resumes
    >> > and allows her to type in the name of the document in the form to
    >> > complete
    >> > the link. If the document was named "test.pdf", I'd like for her to be
    >> > able
    >> > to type in "test.doc" in the field and have it link to
    >> > j:\werners\hr_secured\resumes\test.pdf when she clicks on it. Help
    >> > would
    >> > be
    >> > greatly appreciated!!!!!!!
    >> >

    >>
    >>
    >>
     
  6. Aaron Daniels

    Aaron Daniels
    Expand Collapse
    Guest

    Obviously my way isn't working so I'm open to your way. Can you give me an
    example of how to do it using the shell function?

    "[MVP] S.Clark" wrote:

    > It appears to me that you didn't use any of the properties that I mentioned
    > previously, rather solved it with a different method.
    >
    > I typically use the Shell function to open documents, so I'm not familiar
    > with the Application.FollowHyperlink method. But, if you got it to work
    > once, then you know it works, and you just need to replicate.
    >
    > --
    > Steve Clark, Access MVP
    > http://www.fmsinc.com/consulting
    > *FREE* Access Tips: http://www.fmsinc.com/free/tips.html
    >
    > "Aaron Daniels" <AaronDaniels@discussions.microsoft.com> wrote in message
    > news:16FB2A6B-A62B-4DC6-BC4E-45625D13EC46@microsoft.com...
    > > Even with the unc I am having problems, can you send me an example of how
    > > you
    > > set it up. Right now I am using
    > > Dim DocLocationAndName as String
    > > DocLocationAndName = "\\optimus\FDA_team\werners\hr_secured\resumes\" &
    > > Me.[TextFieldName]
    > > application.FollowHyperlink DocLocationAndName
    > >
    > > I got it working on one form, but when I tried it on the next form it
    > > wouldn't work.
    > >
    > > "[MVP] S.Clark" wrote:
    > >
    > >> Use a mapped drive letter with caution, as it may change, then your app
    > >> breaks.
    > >>
    > >> Use UNC: \\servername\folder\filename.ext
    > >>
    > >> A hyperlink is just a Label control, with the Hyperlink Address set to a
    > >> value. So, using some event, like the Form's OnCurrent, you can update
    > >> the
    > >> label to display whatever you need.
    > >>
    > >> --
    > >> Steve Clark, Access MVP
    > >> http://www.fmsinc.com/consulting
    > >> *FREE* Access Tips: http://www.fmsinc.com/free/tips.html
    > >>
    > >> "Aaron Daniels" <AaronDaniels@discussions.microsoft.com> wrote in message
    > >> news:F2BB31A4-968B-4C74-9CEE-5BB3BB1D8B36@microsoft.com...
    > >> >I am trying to create a Hyperlink field in a form that opens documents
    > >> >in a
    > >> > certain
    > >> > folder
    > >> > j:\werners\hr_secured\resumes
    > >> > and allows her to type in the name of the document in the form to
    > >> > complete
    > >> > the link. If the document was named "test.pdf", I'd like for her to be
    > >> > able
    > >> > to type in "test.doc" in the field and have it link to
    > >> > j:\werners\hr_secured\resumes\test.pdf when she clicks on it. Help
    > >> > would
    > >> > be
    > >> > greatly appreciated!!!!!!!
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page