MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Querying Data

This is a discussion on Querying Data within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am using the Mappoint control in VB 6 to generate maps from data stored in Access. When mapping is ...


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 01-28-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Querying Data

I am using the Mappoint control in VB 6 to generate maps from data stored in Access. When mapping is completed, I want to be able to drill through from regions on map to the underlying data. So when I hover on a region (say county or zip) Mappoint tells me how many names are aggregated. I want to click through to those names.

Any ideas on how to do this? I guess I can use QueryAllRecords and loop through the entire recordset, but this will probably be too slow. Seems like there should be an easy way to do this. Am I missing something?

Thanks in advance for any/all help!

- Lou
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 01-31-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Hi…if I understand your issue correctly, what I’d do is set up a handler for the selection changed event. In that event, pull a key from the selected object and then retrieve the data from a parallel database. i.e. not from MapPoint. Note, if you go this route, don’t leave a modal dialog hanging in the event handler…if you do, MP will throw an OLE timeout error. In VB 6, an easy way around this is to enable a sleeping timer control in the selection changed handler and then let the timer control pop up the dialog box.

Another strategy to solve your issue would be to geocode your aggregated data as a pushpin set with fields for each of the data you want to show. In this method, you get all the nice MP balloon etc. The downside is your user has to click on a mysterious pin rather than a nice, labeled region.

Hope this helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3 (permalink)  
Old 02-03-2003
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Querying Data

Thanks for your help. I have pretty much already resigned myself to going against a parallel db and will do so. Thanks also for the tip regading modal dialogs - learned about this one the hard way...
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, querying


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
Importing new GIS data and querying it. Anonymous MapPoint 2006/2009 Discussion 1 09-26-2002 09:29 AM


All times are GMT -5. The time now is 11:24 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