Results 1 to 5 of 5
  1. #1
    Wombat is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    33

    Help with Hyperlink to track UPS shipments


    I have a continuous form with a list of active shipments including the tracking number. Is there a way that I could make the textbox containing the tracking number into a hyperlink that brings me to the UPS website and tracks the shipment?

    I searched and didn't find anything very useful, I'm a little surprised that this isn't a common question.

  2. #2
    Wombat is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    33
    Here is the link to track a package:

    http://wwwapps.ups.com/WebTracking/p...racknums_displ ayed=1&TypeOfInquiryNumber=T&loc=en_US&InquiryNumb er1=<TRACKING NUMBER HERE>&track.x=0&track.y=0

    I guess with that info, I can use the onClick event of the textbox to trigger vba that constructs the link with the tracking # in it and then... somehow goes to it.

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Check out FollowHyperlink in VBA help. As you say, build a string that includes the fixed text and the tracking number.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    Wombat is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2012
    Posts
    33
    Thanks for the help. Maybe the reason this isn't asked more is because it's actually quite easy.

    Here is my code, in case any future users need.

    Code:
    Private Sub txttracking_Click()
    Dim link As String
    Dim track As String
    track = txttracking.Value
    link = "http://wwwapps.ups.com/etracking/tra...InquiryNumber1=" & track
    Application.FollowHyperlink link, , True
    End Sub

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Happy to help.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Track user usage - help
    By scotiwis in forum Access
    Replies: 3
    Last Post: 10-07-2011, 08:45 AM
  2. How can I track attendance for church?
    By tc2010 in forum Access
    Replies: 1
    Last Post: 08-11-2011, 10:14 PM
  3. Setting Up Tables - On Right Track??
    By lspelman in forum Database Design
    Replies: 4
    Last Post: 05-08-2011, 06:31 PM
  4. Replies: 4
    Last Post: 01-31-2011, 03:19 PM
  5. Track change in a form
    By jmk909er in forum Forms
    Replies: 5
    Last Post: 10-19-2010, 04:05 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