MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




the requested member of the collection does not exist."

This is a discussion on the requested member of the collection does not exist." within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; frmMap.mpc.NewMap ("C:\Program Files\Microsoft MapPoint Europe\Templates\belgium.ptt") Load frmMap frmMap.Show Dim objPin As Pushpin Dim objLoc As Location Dim place As String ...


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 07-12-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
the requested member of the collection does not exist."

Quote:
frmMap.mpc.NewMap ("C:\Program Files\Microsoft MapPoint Europe\Templates\belgium.ptt")
Load frmMap
frmMap.Show

Dim objPin As Pushpin
Dim objLoc As Location
Dim place As String

Dim objApp As New MapPoint.Application

For cntr = 1 To objRec.RecordCount
place = objRec!firmaid & ", " & objRec!naam & ", " & objRec!straatnaam & ", " & objRec!straatnummer & ", " & objRec!gemeente & ", " & objRec!postcode
Set objLoc = frmMap.mpc.ActiveMap.FindResults(place).Item(1)
If objLoc Is Nothing Then
MsgBox "Nothing Found"
Exit Sub
End If
frmMap.mpc.ActiveMap.AddPushpin objLoc, objRec!naam
objRec.MoveNext
Next cntr
This is the code i'm using. The following error is what I get:

Quote:
the requested member of the collection does not exist. Use a valid name or index number
When I click the debug-button is reffers to "Set objLoc = frmMap.mpc.ActiveMap.FindResults(place).Item(1)"

I'm stuck with this problem for already about 2 days and I can't figure it out myself

Somebody who can help me?
thanks in advance.
__________________
greetz
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 07-12-2004
Winwaed's Avatar
Mapping-Tools.com
Red Belt
 
Join Date: Feb 2004
Posts: 848
Blog Entries: 7
Try checking the return value from FindResults - is it actually finding the address?

You also probably want to look at the value of place: ie. is your formatting correct?


Richard
__________________
Winwaed Software Technology LLC
http://www.winwaed.com
See http://www.mapping-tools.com for MapPoint Tools
Pre-Order MapPoint 2009 today: http://www.mapping-tools.com/mappoint2009
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 07-12-2004
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I can check them, but I think it's just a problem with the database. No?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4 (permalink)  
Old 07-12-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
Quote:
Originally Posted by Anonymous
I can check them, but I think it's just a problem with the database. No?
that was me
__________________
greetz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5 (permalink)  
Old 07-20-2004
Junior Member
Yellow Belt
 
Join Date: Apr 2004
Posts: 12
is there any possible way to skip the records with that error?
if so, can somebody please help me?

thx in advance.
__________________
greetz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6 (permalink)  
Old 07-20-2004
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,381
Blog Entries: 1
Hi,

Dim a FindResults Collection and stick all of the results into that.

Then check the Count property, if it is 0 then I think your line returns an error... basically put an "If Count <> 0 Then your line..:

"Set objLoc = myFindResultsCollection.Item(1)"

hth,
Eric
__________________
~ Now taking orders for MapPoint 2009 ~
~
~ Upgrade to MapForums Plus membership ~
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


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
garbage collection SimonPearse MapPoint 2006/2009 Discussion 6 01-05-2007 12:10 PM
Garbage collection daxydoggie MapPoint 2006/2009 Discussion 3 05-04-2005 12:35 PM
requested member of collection does not exist Anonymous MapPoint 2006/2009 Discussion 0 11-16-2004 07:22 AM
How know if a pushpin exist ? Anonymous MapPoint 2006/2009 Discussion 2 07-01-2004 03:05 AM
Do I need "Autoroute Europe", if I install "M bigtail MapPoint 2006/2009 Discussion 1 03-23-2004 11:58 PM


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

Short Ski Holidays
Get great value ski holidays to suit you. Book short ski holidays from a range of tour operators by visiting Holiday Hypermarket online today.

European City Breaks
Find European City Breaks on Travel Counsellors. Based on holidays booked this year, these are the most popular City Breaks for 2006

Turkey Holidays
Istanbul is Turkey's prime attraction as it has the most beautiful mosques and palaces of the country; it has Byzantine churches and Roman temples. Book Turkey Holidays online.

Dubai Holidays
Dubai holidays provide you with exotic sights, desert safaris and superb cuisine. There is an extensive range of things to do and see!

Cheap Canaries Holidays
Are you hunting down cheap Canaries holidays? Well check out ulookubook.com to bag a great value holiday. There are numerous festivals taking place all year round. Why not book your holiday around one?

Comparison Holidays
Travel.co.uk is a travel comparison service which makes it easy for you to find and plan the best holidays.

Cheap Goa Holidays
Experience the world famous Wednesday Flea Market at Anjuna! Book cheap Goa holidays at On The Beach!


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