Community of VE/MapPoint Users and Developers
This is a discussion on Say I import a data file containing company names,.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Say I import a data file containing company names, addresses, and number of employees at each address. How can i ...
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| (I know i could do Export to Excel each time i draw the polygon, then add the total within Excel, but I would like to eliminate that step and see the total while still in MapPoint). |
| |||
|
Use the "QueryShape" method. From MapPoint 2002 help for this method: <pre> 'Find records in shape objshape.Select Set objRecords = objDataSet.QueryShape(objshape) objRecords.MoveFirst Do While Not objRecords.EOF lngCount = lngCount + 1 objRecords.MoveNext Loop MsgBox "Number of records in shape: " & lngCount </pre> So, you'd have to be able to identify the shape that you want to query, or you could do this for all Shapes having geoFreeform as a type. Then replace the accumulation of records with an accumulation of the employees field. - Walt Cygan |
![]() |
| Tags |
| company, data, file, import, names |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Possible to batch file/macro Import Data Wizard? | Oyjord | MapPoint 2006/2009 Discussion | 0 | 05-31-2005 06:05 PM |
| Import data from a file into Map Point using VB Code?..... | Anonymous | MapPoint 2006/2009 Discussion | 1 | 10-29-2004 02:48 PM |
| Import NMEA-data from a file into mappoint | Anonymous | MapPoint 2006/2009 Discussion | 2 | 11-19-2003 01:17 PM |
| to import data of one access file into another using vb code | bushi_khan | MapPoint 2006/2009 Discussion | 0 | 10-14-2003 03:12 AM |
| Import data from a text file | Val | MapPoint 2006/2009 Discussion | 2 | 07-08-2003 08:15 AM |