MapPoint Forums

MapForums

Community of MapPoint and Virtual Earth Users and Developers




Completely Frustrated With RecordSets

This is a discussion on Completely Frustrated With RecordSets within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; Does the Mappoint RecordSet object come up short, or is it just me? Here's my issue. I provide a user ...


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

Today's Posts Twitter Feed 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-02-2006
EdB EdB is offline
Member
Green Belt
 
Join Date: Aug 2002
Posts: 56
Completely Frustrated With RecordSets

Does the Mappoint RecordSet object come up short, or is it just me?

Here's my issue. I provide a user with the opportunity to enter an address for me to find. If the results are not found exactly, I pop up the ShowFindDialog. So, they identify their item and Mappoint places a pushpin on the map. It names it based on the item that they selected from the dialog. Now, I need to find out the name of that pushpin.....keeping in mind that there may be other pushpins on the map already, and I do know their names.

I can see the RecordCount of the DataSet in question, but I can not see an Item property on the RecordSet object to cycle through the names of the pushpins on the map and see if the name matches a known name.

I looked to the Fields property and although I have items in the recordset/dataset, fields reports 0.

HELP!!!!!!!!!
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-02-2006
EdB EdB is offline
Member
Green Belt
 
Join Date: Aug 2002
Posts: 56
OK, so I figured this out......but the recordset object IS wanting.

Unless I am totally missing something....

if I do this:

objRecordSet = app.ActiveMap.DataSets(1).QueryAllRecords

I need to cycle through the RecordSet using MoveFirst and MoveNext to get the number of records in the recordset.......how about a count property? Is that too much to ask?
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-04-2006
Senior Member
Black Belt
 
Join Date: Nov 2004
Posts: 2,177
Hi,

The result set suport the foreach statement. I think this is also supported in VB. Not sure.
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
completely, frustrated, recordsets


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
Frustrated - Script timed out Active Server Page webdbx MapPoint 2006/2009 Discussion 1 12-13-2004 02:48 AM
joining recordsets with arrows (II) Anonymous MapPoint 2006/2009 Discussion 0 10-28-2003 06:37 AM
joining recordsets with arrows Anonymous MapPoint 2006/2009 Discussion 1 10-22-2003 07:54 AM


All times are GMT -5. The time now is 07:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 RC2
MP2K Magazine
Visitor Map

Sharm El Sheikh Holiday
Enjoy the hot sun and fantastic beaches on your Sharm El Sheikh holiday! Check out the UlookUbook online offers...



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 56 57 58 59