Results 1 to 2 of 2
  1. #1
    Douglas Post is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    Portage, MI
    Posts
    9

    Button to Open HTML contained in Text Field

    I have an image that I want to utilize as a button. What I want to accomplish is when I click on the button it looks to a text field in the same form called "Listing". I want is the path for the Hyperlink to be whatever is contained in this "Listing" field. I cannot hard code the hyperlink to the image as each record has a different URL.

    Late on I want to create an image of Bing Maps, and when I click this image it looks to the Address, City, State, Zip text fields in the same record, modifies the URL path so the return would open the browser and zoom right to the subject address.

    I think the answer to the first will solve my answer to the second issue.

    Your help is appreciated in advance.

  2. #2
    Douglas Post is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Location
    Portage, MI
    Posts
    9

    Solution

    I solved the problem by making the field "Listing" a text field not a Hyperlink field as it added # before and after the URL. I then wrote the following event proceedure:

    Private Sub Button_Click()
    Call FollowHyperlink(Me.
    [Listing])
    End Sub

    Where the images name is "Button" and the text field containing the URL is "Listing"

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

Similar Threads

  1. SendObject - HTML tags in 'To' field
    By Hello World in forum Forms
    Replies: 1
    Last Post: 10-20-2011, 02:31 PM
  2. Replies: 11
    Last Post: 06-02-2011, 10:21 AM
  3. Replies: 0
    Last Post: 03-24-2011, 11:09 PM
  4. Replies: 1
    Last Post: 09-13-2010, 01:57 PM
  5. HTML tags in memo field
    By sprovoyeur in forum Access
    Replies: 0
    Last Post: 05-11-2010, 01:33 PM

Tags for this Thread

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