Jump to content

Automatically Populate Bing Maps URL From MS Access

Recommended Posts

I have a form that contains the following fields:

  • Address
  • City
  • State
  • Zip

I convert this to FullAddress with:

Dim FullAddress As StringFullAddress = Address & " " & City & " " & State & " " & Zip

I am outputting to Outlook and want to create a link to Bing Maps with:

"<br><A HREF=http://www.bing.com/maps/?v=2&where1=" & FullAddress & "&sty=b>Bing Maps</A>"

Somehow the A HREF function truncates the string to the first space contained in the FullAddress. So if the address read "5822 Cranston, Portage, MI 49002", the actual output hyperlink is: http://www.bing.com/...v=2&where1=5822 Instead of what I want it to do which is : http://www.bing.com/maps/?v=2&where1=5822 Cranston, Portage, MI 49002 &sty=b I realize that HREF may not like spaces but my field Address has the street number and address in the same field instead of separate fields.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...