VBA Access - going to a FEDex / UPS Tracking number

Is it possible to create a link or a command button that takes a tracking number that was entered into a text box and directly link it to the UPS/Fedex site?

So if a person entered 1234567, they would click on a button and that would take them directly to the web site that shows them their tracking detail?

Thank you
Linder1976Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

carsRSTCommented:
Absolutely...



Private Sub Command0_Click()
   fedExID = Text1.Value
    Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.fedex.com/Tracking?ID" & fedExID
end sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
carsRSTCommented:
Follow up...

I don't know the tracking site for fedex, but the code below should get you there.  Just make the necessary changes.


Private Sub Command0_Click()
   fedExID = Text1.Value
    Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://www.fedex.com/Tracking?ID=" & fedExID
end sub
Linder1976Author Commented:
do also have one for ups and dhl?
carsRSTCommented:
Unfortunately I do not have a real tracking number for any of these sites.  But the concept is the same...you would just grab the tracking number from your input box and change the URL in the code.  The code below will launch IE and put in the URL, so that your users are taken directly to the site you want.



Private Sub Command1_Click()
   UPS = Text2.Value
    Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://wwwapps.ups.com/WebTracking/track?loc=en_US&ID=" & fedExID
end sub

carsRSTCommented:
Sorry - just a little correction to my code (I have a fast trigger finger)....

Private Sub Command1_Click()
   UPSID = Text2.Value
    Shell "C:\Program Files\Internet Explorer\IEXPLORE.EXE http://wwwapps.ups.com/WebTracking/track?loc=en_US&ID=" & UPSID
end sub
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Applications

From novice to tech pro — start learning today.