Community of MapPoint and Virtual Earth Users and Developers
This is a discussion on Query Mappoint Visual Basic 6.0 within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have an access database which i am using to color counties and specific states around the usa. I need ...
| |||||||
| Today's Posts | Twitter Feed | Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| |||
| Query Mappoint Visual Basic 6.0 The code below maps everything together, however i need to be able to filter the field practice code to a specific value before submitting the information to mappoint. '---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("practicedescription") Set objDataMap = objDataSet.DisplayDataMap(geoRangeTypeUniqueValues , objField, _ geoShowByRegion2, , _ geoRangeTypeDiscreteEqualRanges, _ , _ lColorRange) End With |
| ||||
|
Yes that would be my approach. I haven't done much work with color shaded plotting and ImportData, but datasets are read-only. Even user-imported pushpin sets! Richard
__________________ Winwaed Software Technology LLC http://www.winwaed.com See http://www.mapping-tools.com for MapPoint Tools See the Geoweb Guru for online mapping |
![]() |
| Tags |
| basic, mappoint, query, visual |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| mappoint, visual c++ vs visual basic | Anonymous | MapPoint 2006/2009 Discussion | 6 | 03-30-2004 09:17 PM |
| Control of MapPoint 2002 using Visual Basic .Net | DogsWorld | MapPoint 2006/2009 Discussion | 1 | 02-26-2004 10:53 PM |
| Visual Basic. NET and MapPoint | Anonymous | MapPoint 2006/2009 Discussion | 1 | 07-30-2003 02:49 PM |
| Visual basic or visual c++ in mappoint | misterb83 | MapPoint 2006/2009 Discussion | 1 | 02-14-2003 08:31 AM |
| I am using MapPoint 2001 and Visual Basic(6.0). I.... | Anonymous | MapPoint 2006/2009 Discussion | 2 | 06-10-2002 08:33 AM |
Dalaman Holiday
Enjoy a wonderfully peaceful Dalaman holiday... Book through UlookUbook and save!