Results 1 to 3 of 3
  1. #1
    Tectu is offline Novice
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    20

    Adding Hyperlinks to a Listbox

    I have a table which holds a field named SupplierName and ProductLink. Inside an existing form I would like to have a listbox which uses the SupplierName as the item text and the ProductLink as a hyperlink for that item. The user should therefore be able to clink on any of the supplier names in the listbox and the link to the product will open in the webbrowser.



    How do I do that? I assume that I first have to write some VBA code that takes both the SupplierName and the ProductLink and creates the list item which is added to the list. Any hints on how to do this? Is the listbox even able to have links as items?

    Thank you for your help.


    ~ Tectu

  2. #2
    CJ_London is online now VIP
    Windows 8 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,445
    check out the followhyperlink method

    https://msdn.microsoft.com/en-us/lib...ffice.11).aspx

  3. #3
    Tectu is offline Novice
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Posts
    20
    Thanks, I know how to work from here!

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

Similar Threads

  1. Replies: 2
    Last Post: 03-27-2015, 08:48 AM
  2. Replies: 13
    Last Post: 07-27-2014, 12:12 AM
  3. Adding Hyperlinks to Linked Tables
    By rwilso29 in forum Access
    Replies: 1
    Last Post: 07-02-2013, 09:08 AM
  4. Using Hyperlinks in Listbox
    By michaelb in forum Forms
    Replies: 1
    Last Post: 11-09-2011, 03:21 PM
  5. adding list to a listbox
    By jetrow in forum Access
    Replies: 0
    Last Post: 08-15-2006, 03:36 AM

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