MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Display data map

This is a discussion on Display data map within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; The code below displays shaded map based on an access database. The issue i am having is the following: 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 09-19-2005
Junior Member
White Belt
 
Join Date: Mar 2005
Posts: 8
Display data map

The code below displays shaded map based on an access database. The issue i am having is the following:

I am displaying the field "practice code" from the database which contains the "997". Every time i run the program in visual basic 6.0, it displays a message saying that the parameter is incorrect. If i change the value 997 to a number below 100 in the database, the program works perfectly (shading about 44 counties in Texas). Is there a limitation to numbers above 100? Does anyone have experienced this issue or know a work around it?

Thanks in advance

'---Similar to the Pushpin version, the following code display a shaded data map on the screen

Dim objMap As MapPointCtl.Map
Dim szconn As String
Dim objDataSet As MapPoint.DataSet
Dim objDataMap As MapPoint.DataMap
Dim objField As MapPoint.Field
Dim lRangeValues(1 To 5) As Variant
Dim zRangeNames(1 To 4) As String
Dim lColorRange As Long
Dim objPin As MapPoint.Pushpin
Dim rs As ADODB.Recordset
Dim sSql As String


Set objMap = MappointControl1.NewMap(geoMapNorthAmerica)
Set objMap = MappointControl1.ActiveMap

With objMap.DataSets
szconn = "C:\Silveus\MapPoint\Texas\Texas.mdb!Texas997"
Set objDataSet = .ImportData(szconn, , geoCountryUnitedStates, , geoImportAccessTable)

Set objField = objDataSet.Fields("practicecode")

Set objDataMap = objDataSet.DisplayDataMap(geoRangeTypeUniqueValues , objField, _
geoShowByRegion2, , _
geoRangeTypeDiscreteEqualRanges, _
, _
lColorRange)
End With
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
data, display, map


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
Display State data DaveKMGI MapPoint 2006/2009 Discussion 3 04-29-2004 04:02 PM
Display Market Share Data keblmb MapPoint 2006/2009 Discussion 1 07-01-2003 03:55 PM
Balloon data display marcus smith MapPoint 2006/2009 Discussion 1 01-17-2003 08:08 PM
In VB is there any way to display just the map pan.... Anonymous MapPoint 2006/2009 Discussion 1 07-18-2002 09:58 PM
Can Mappoint import/display data source files that.... Anonymous MapPoint 2006/2009 Discussion 1 07-17-2001 12:04 PM


All times are GMT -5. The time now is 11:01 PM.


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