View Single Post

  #5 (permalink)  
Old 04-30-2008
qpgraphics4 qpgraphics4 is offline
Junior Member
White Belt
 
Join Date: Mar 2008
Posts: 4
Re: Automate Multiple Maps

I am trying to get the distance for each customer to a master location. Some address are returning the correct # of miles, and some address are returning a time (12:00 AM). This is the code I am using:

Dim dDistance As Double

dDistance = Math.Round(oRoute.Distance, 1)

How can I get the correct number of miles for the addresses that are returning 12:00 AM?

p.s. I am programming in VBA using MapPoint 2006
Reply With Quote