Welcome to SPN

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

Sign Up Now!

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!!!!!!!
    > >> >
    > >>
    > >>
    > >>

    >
    >
    >
     

Share This Page