Results 1 to 6 of 6
  1. #1
    emailloni is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    9

    Command Button Help


    Hello All -
    I just finished up three days of access training and I am in love! I can't believe all the wonderful things that one can accomplish in access.
    I have a question that my instructor was unable to assist me with but I'm more than confident this can be done with writing some code.
    I have created a form for data entry that pulls from multiple tables. My customer table has a hyperlink to a folder on our shared network for each customer. I can easily put this in the form as the link but want to make it cuter by just using a command button. I've tried using a macro but can't find one that will go to the Link entry and click it to take me to the folder. Can anyone help me??
    Thank you so much!
    Loni

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Are you looking for something like: expression.FollowHyperlink(Address, SubAddress, NewWindow, AddHistory, ExtraInfo, Method, HeaderInfo)

  3. #3
    emailloni is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    9
    Well....I'm not quite sure....this is what I have so far:
    Private Sub Command17_Click()
    Command17.HyperlinkAddress = [Link].Value
    End Sub

    Link is the filed that I have my hyperlink in.

    And it looks like it wants to work but I must be missing something small, here is my error:

    Microsoft Access cannot follow they hyperlink to '\\fhp-ww.com\filestore\location\chicago (hus1)\Finance\99 Shared\02 AR\True Value Company'

    Thoughts anyone??

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about:
    Application.FollowHyperlink Me.Link, , True

  5. #5
    emailloni is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2012
    Posts
    9
    Same exact error.....

  6. #6
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 64bit Access 2010 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Loni.
    That hyperlink looks like it is on the Internet and so the browser is used and my browser returns the same error. It is pointing to fhp-ww.com.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Button Command
    By JayX in forum Access
    Replies: 7
    Last Post: 12-27-2011, 12:58 PM
  2. Command Button
    By tia in forum Access
    Replies: 1
    Last Post: 11-20-2011, 11:47 AM
  3. command button
    By berni3883 in forum Forms
    Replies: 17
    Last Post: 04-22-2011, 12:04 AM
  4. Replies: 1
    Last Post: 07-27-2010, 02:27 PM
  5. Command Button
    By lannoe in forum Forms
    Replies: 1
    Last Post: 07-01-2010, 01:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums