Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 120
  • Last Modified:

Microsoft Access 2010 Question

How do I launch IE with a URL from Text field by Macro?
0
Hiroyuki Tamura
Asked:
Hiroyuki Tamura
2 Solutions
 
Rey Obrero (Capricorn1)Commented:
you don't need a macro to open a URL, all you need to do is change the Data type of your Text field to Hyperlink
1
 
PatHartmanCommented:
I avoid the "Access" only data types.  If you use them, you will not be able to upsize without converting them to standard data types and all the code and query changes that entails.

Use the FollowHyperlink method.  It works on a text field that contains the name of a website or the full path to any file as long as the file extension is known to Windows.  So the same instruction can open a .jpg, doc, .docx,, .xlsx,  Http://, etc.

The FollowHyperlink method may or may not be a macro action.  If it isn't, it is only a single line of VBA and intellisense will help you build it.
0

Featured Post

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now