MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Mappoint templates and use within Msaccess

This is a discussion on Mappoint templates and use within Msaccess within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have recently created an application the basics for which i found this article and the application within it to ...


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-23-2003
Senior Member
Green Belt
 
Join Date: Sep 2003
Posts: 103
Mappoint templates and use within Msaccess

I have recently created an application the basics for which i found this article and the application within it to be very useful

http://www.mp2kmag.com/articles.asp?ArticleID=74

However I am trying to use a mappoint template which I have created as the basis for the map as there is some information i have put on this map which is a requirement of the application.

To open this map up as the active map I have used the line

Dim gappMp As New MapPoint.Application
Dim objMap As Mappoint.Map

gappMp.NewMap gappMp.Path _
+ "\Templates\Test.ptt"

Set objMap = gappMP.ActiveMap

When I do this the rest of the application (i.e. adding pushpins with FindAddressResults) ceases to work (and I get the error Access Violation - No RTTI Data! but i think this is a different issue).

I know i must be missing something but I just don't know what, (i suspect its something to do with datasets?! just a guess really).
If anyone has any ideas or if anyone else has used the above article as a basis for there application and has had similar problems I would be very gratefull for any help.

(also if nothing i have said so far makes any sense then let me know as i may have gone completly wrong somewhere!!)

Dazzer

PS this is what I am doing to add pushpins:

Set objLoc = objMap.FindAddressResults(Me!Street, Me!City, ,Me!County, Me!PostalCode)(1)
Set objPushpin = objMap.AddPushpin(objLoc, Me!Street)
objPushpin.Name = Me!Name
objPushpin.Note = Me!PostalCode
objPushpin.BalloonState = geoDisplayBalloon
objPushpin.Symbol = 77
objPushpin.Highlight = True

Where objLoc is Mappoint.Location and objPushpin is Mappoint.Pushpin
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
mappoint, msaccess, templates


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
How do I Integrate MapPoint with MSAccess newlifcc MapPoint 2006/2009 Discussion 1 09-21-2005 01:22 PM
Adding pushpins by lat/long or address using MPC in MSAccess GM MapPoint 2006/2009 Discussion 0 11-01-2004 01:00 PM
using msaccess with password to import data in mappoint2002 geethesh MapPoint 2006/2009 Discussion 0 07-23-2003 11:06 AM


All times are GMT -5. The time now is 06:16 AM.


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