Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6630669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T22:26:18+00:00 2026-05-25T22:26:18+00:00

I have a parameter query that looks up the tracking # for a given

  • 0

I have a parameter query that looks up the tracking # for a given customer_order_ID and outputs the tracking# as a website link, as a single record. Please advise me how I can have the link run automatically when the user inputs the customer_order_ID into the parameter query , in order that the user can immediately track the package on the UPS Worldship website. I do not know VBA nor do I know SQL, but I can make macros.
Thank you very much in advance

SELECT T.order_ID, "http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_us&InquiryNumber1=" & [T].[tracking_number] & "&track.x=0&track.y=0" AS link
FROM tblShipmentDataFromAllCarriers AS T
WHERE (((T.order_ID)=[Please enter customer order ID]));
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T22:26:18+00:00Added an answer on May 25, 2026 at 10:26 pm

    If you don’t need to parse the return data and just want to open the web page, you can use Application.FollowHyperlink. But you don’t need to do the concatenation with the URL in the SQL:

    SELECT T.order_ID, [T].[tracking_number]
    FROM tblShipmentDataFromAllCarriers AS T
    WHERE (((T.order_ID)=[Please enter customer order ID]));
    

    Then you could store the rest of the URL as constants:

    Const c_strURL1 = "http://wwwapps.ups.com/WebTracking/processInputRequest?sort_by=status&tracknums_displayed=1&TypeOfInquiryNumber=T&loc=en_us&InquiryNumber1="
    Const c_strURL2 = "&track.x=0&track.y=0"
    

    …and then execute it like this:

    Public Sub DisplayTrackingNumber(ByVal strOrderID As String)
      Dim strTrackingNumber As String
    
      strTrackingNumber = DLookup("tracking_number", "tblShipmentDataFromAllCarriers", "[order_ID]=" & strOrderID)
    
      Application.FollowHyperlink strUrl1 & strTrackingNumber & strUrl2
    End Sub
    

    You’d then have to have a UI to collect the OrderID from the user (I’d suggest a form with a combo box) and then call this sub.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an sql query that has a parameter that can be null in
I have a query that looks like this: SELECT * FROM employees e LEFT
I have built a NamedQuery that looks like this: @NamedQuery(name = EventLog.viewDatesInclude, query =
I have a query that looks like this: SELECT last_name, first_name, middle_initial FROM names
I have a query with a where clause that looks like: WHERE field IN
I have this query, that's been giving me some issues, it looks like this:
I have a form that sometimes gets linked to with some query string parameters.
I have a showall query string parameter in the url, the parameter is being
I have a perl script, which takes a query string parameter, connects to a
I have a L2S query with several joins that should returns 11 records in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.