MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




I am currently working with the MapPoint 2002 Tria....

This is a discussion on I am currently working with the MapPoint 2002 Tria.... within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I am currently working with the MapPoint 2002 Trial. I want to utilize MapPoint in an Access database. I can ...


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 06-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I am currently working with the MapPoint 2002 Trial. I want to utilize MapPoint in an Access database. I can add a MapPoint control to the form and create buttons to do different functions. However, after testing the form, if I go back to design view, I get a message saying "There is no control in this object." and the MapPoint control on my form gets deleted. Any help would be appreciated.
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 06-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I'm using Access 2002 on a Windows XP machine. I've tried it with and without service pack 1 for Office XP installed.
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 06-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Me too. I have to be careful to make code changes and save before returning to the form then close the form and then reopen to test.
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 06-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
Greg, I had the same problem. Have you overcome it yet?

I used a code sample which works with an image control on the Access form, pasting the contents of a MapPoint Object into the image.

Email me for further info or to share progress at wellermatt@hotmail.com.

Code Sample (sorry it is untidy!):

Private Sub Form_Load()

SetObjects
ReloadMap ("None")

End Sub

Sub SetObjects()

Set oApp = CreateObject("Mappoint.Application")
Set oMap = oApp.OpenMap("c:\matt\renault\CUstom Territories.ptm") 'Create a new map

End Sub
Sub ReloadMap(PCode)

Dim oPush As Object, oLoc As Object

Set oLoc = oMap.Find(PCode)

'get address from PostCode

If Not oLoc Is Nothing Then 'Check to see if the first address was found.
Set oPush = oMap.AddPushpin(oLoc) 'Place a pushpin on the map
'add some more details to the pushpin and display the balloon
oPush.BalloonState = geoDisplayBalloon
oMap.ZoomIn
oPush.Goto
oMap.Saved = True
'Zoom in so that the entire map with directions is viewed
oMap.CopyMap 'Copy the map to the clipboard
img.Visible = True 'Change the image place holder in the Access form to visible
img.Action = acOLEPaste
End If

End Sub


Sub RefreshMap()
oMap.Saved = True
'Zoom in so that the entire map with directions is viewed
oMap.CopyMap 'Copy the map to the clipboard
img.Visible = True 'Change the image place holder in the Access form to visible
img.Action = acOLEPaste
End Sub


Private Sub cmdPanEast_Click()
oMap.Pan (geoEast)
RefreshMap
End Sub


Private Sub cmdPanNorth_Click()
oMap.Pan (geoNorth)
RefreshMap
End Sub


Private Sub cmdPanSouth_Click()
oMap.Pan (geoSouth)
RefreshMap
End Sub


Private Sub cmdPanWest_Click()
oMap.Pan (geoWest)
RefreshMap
End Sub


Private Sub cmdZoomIn_Click()
oMap.ZoomIn
RefreshMap
End Sub


Private Sub cmdZoomOut_Click()
oMap.ZoomOut
RefreshMap
End Sub



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 06-03-2002
Senior Member
Black Belt
 
Join Date: Jul 2002
Posts: 5,138
I'm not familiar with this issue, what version of Access are you using? The trial is fully-functional so there shouldn't be an issue with that.
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 2002, tria, working


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
Got Mappoint ActiveX working in Delphi 5 lynx MapPoint 2006/2009 Discussion 8 02-12-2008 05:46 PM
When working with mappoint and coping to word how .... Anonymous MapPoint 2006/2009 Discussion 1 06-28-2002 09:20 AM
Hi there. Working with MapPoint 2002, Is it pos.... Anonymous MapPoint 2006/2009 Discussion 1 06-25-2002 10:36 AM
I am working with MapPoint Europe 2002. How can I .... Anonymous MapPoint 2006/2009 Discussion 1 06-24-2002 10:36 AM
I am working with Mappoint in Pakistan and I want .... Anonymous MapPoint 2006/2009 Discussion 1 06-22-2002 10:02 AM


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