MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Say I import a data file containing company names,....

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 ...


Go Back   MapPoint Forums > Map Forums > MapPoint 2006/2009 Discussion

Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-14-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Say I import a data file containing company names, addresses, and number of employees at each address. How can i draw a polygon around a subset of these companies and find out total employees inside the polygon?
(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).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2 (permalink)  
Old 02-14-2002
Senior Member
Green Belt
 
Join Date: Aug 2002
Posts: 124
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
company, data, file, import, names


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -5. The time now is 12:54 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
MP2K Magazine
Visitor Map


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55