.hyperlink information from within a subform

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • voodooca
    New Member
    • Apr 2010
    • 4

    .hyperlink information from within a subform

    Hi Everyone,

    I have just created a hyperlink from within a simple form that I have to pull and open a PDF file that matches with a customers order.

    My code is below:

    FollowHyperlink "\\Frontdesk\Fr ontDesk\PDFOrde rs\" & Order & ".pdf"

    That works great - now I have a challenge, and I dont think it will work, but I am not the greatest with the programming end of things, so I wanted to ask.

    I have a form that shows each customer, then a subform that only shows orders from that customer. As you can imagine customers may have 1 order or 5...

    Can I use the same idea for hyperlink as above on the form and still get Access to open the orders for a customer from within the subform?

    I simply tried putting the same code on the main area of the form, but as I expected it doesnt look in the subform. Even if I could get it to look in the subform, what happens when it sees 2 or more numbers in the "order" column?

    I have added a picture incase that helps.

    Any help is appreciated!

    Chad
    Attached Files
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32633

    #2
    Check out How to Programmaticall y Create a Hyperlink on a Form. It could be easier than you think.

    Comment

    • voodooca
      New Member
      • Apr 2010
      • 4

      #3
      Thanks Neo, I will take a look.
      Does that mean you know/think what I want to do is possible?

      *UPDATE* - Ok, so I took a look at that thread you referenced... I dont have any programming background so I am seriously struggling with understanding what each of those lines will do. Classically I have copied programming that I have found somewhere and manipulated it slightly to accomplish what I need (Like the hyperlink example above) but my instincts are telling me that without some more background lessons, deciphering that code is a little above my pay grade. :)

      Chad

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32633

        #4
        :D

        To be honest, that wasn't the thread I thought I was linking you to. I need to dig up something I did a while back that made creating these links for a form perfectly possible just in the query itself. Generally speaking, no code required.

        Comment

        • voodooca
          New Member
          • Apr 2010
          • 4

          #5
          Oh, no problem - I appreciate the help.
          I was having issues just getting the simple one working today over the network, but I resolved that. Now I just want to see if I can make it pul multiple orders.

          Thanks for the help!
          Chad

          Comment

          • NeoPa
            Recognized Expert Moderator MVP
            • Oct 2006
            • 32633

            #6
            What I thought I was posting was Error 7980: HyperlinkAddres s or HyperlinkSubAdd ress read-only for Hyperlink.

            Comment

            • voodooca
              New Member
              • Apr 2010
              • 4

              #7
              Thanks Neo!
              I will take a read over that and see if it is easier to understand.

              Chad

              Comment

              Working...