MapPoint Forums

MapForums

Community of VE/MapPoint Users and Developers




Worked before!

This is a discussion on Worked before! within the MapPoint 2006/2009 Discussion forums, part of the Map Forums category; I have an Access 2003 form with a command button which opens a form called frmMapEX. I pass the address ...


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 (4) Thread Tools Display Modes
  4 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 10-04-2007
Junior Member
Yellow Belt
 
Join Date: Jun 2006
Posts: 14
Worked before!

I have an Access 2003 form with a command button which opens a form called frmMapEX. I pass the address from the original form to frmMapEX.

First error is a Run-time error '430' Class does not support Automation or does not support expected interface.

When I debug I get the following:
Public Function ApplyPoint()
If oMap Is Nothing Then Set oMap = Me!MapCtl.Object
Set objSA = oMap.ActiveMap.ParseStreetAddress(txtAddress)
Set oLoc = oMap.ActiveMap.FindAddressResults(objSA.Street, objSA.City _
, , objSA.Region, objSA.PostalCode)
If Not oLoc Is Nothing And oLoc.ResultsQuality <> geoNoResults Then
Set oPush = oMap.ActiveMap.AddPushpin(oLoc(1).Location, "Machine Location")
oPush.BalloonState = geoDisplayName
oPush.Location.GoTo
Set oPush = Nothing
Set oLoc = Nothing
End If
End Function

I seem to specifically be having trouble with the following line:
Set oPush = oMap.ActiveMap.AddPushpin(oLoc(1).Location, "Machine Location")

Any thoughts??????????????
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 10-04-2007
Eric Frost's Avatar
Senior Member
Black Belt
 
Join Date: Jul 1992
Posts: 2,466
Blog Entries: 1
Re: Worked before!

Ah ha! I hate this error because I get it about every other year and by then I have forgotten what it's about.. but I got it again just a few months ago and so I think I can help you..

It could be because you have more than one version of MapPoint installed, at least this is what I've been chalking it up to.

Try this: Class does not support Automation or does not support expected interface

hope this helps, let us know if it does not.

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

Tags
worked


LinkBacks (?)
LinkBack to this Thread: http://www.mapforums.com/worked-before-6499.html

Posted By For Type Date
Converting Strings Into Decimal Degree Format - MapPoint Articles - MP2K Magazine This thread Refback 10-10-2007 08:38 AM
Reverse Geocoding with MapPoint 2002 - MapPoint Articles - MP2K Magazine This thread Refback 10-09-2007 09:49 AM
Reverse Geocoding, Another Method - MapPoint Articles - MP2K Magazine This thread Refback 10-08-2007 11:11 AM
An API to Control MapPoint 2006 GPS Features - Part I of II - MapPoint Articles - MP2K Magazine This thread Refback 10-07-2007 05:08 AM

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


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