Results 1 to 4 of 4
  1. #1
    stephenaa5 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    72

    Code works in full, fails in Runtime

    Hi, all. When running this code one a runtime machine, it gives a runtime error. On machines with a full version of Access, it's fine. Any thoughts?

    Thanks,

    Stephen.
    -----------------------------------------------------------
    Private Sub Command406_Click()

    Dim objApp As New MapPoint.Application


    Dim objMap As MapPoint.Map
    Set objMap = objApp.ActiveMap
    objApp.Visible = True
    objApp.UserControl = True
    Dim oDS As MapPoint.DataSet
    With objApp.ActiveMap.DataSets
    Set oDS = .ImportData("c:\map\mapfile.xls", , geoCountryUnitedStates, , geoImportExcelSheet)

    End With

    objMap.DataSets.ZoomTo

    End Sub

  2. #2
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    I forget...runtime doesn't give the error description, does it? If it does, what is it?

    If I remember right, Access just pops up an irrelevant message and crashes..

  3. #3
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Have you tried running the full version with the /runtime switch?

  4. #4
    stephenaa5 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Oct 2009
    Posts
    72

    Runtime problem

    Correct, runtime doesn't provide any detailed error code.
    I've tried it run as .addr, and it acts fine. Is that the "runtime switch" to which you are referring?

    Thanks, guys!

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-09-2015, 03:11 PM
  2. Filters fails with ado disconnected recordset
    By afn.franco in forum Access
    Replies: 0
    Last Post: 06-08-2010, 08:13 AM
  3. 2007 upsizing wizard fails
    By gsam in forum Import/Export Data
    Replies: 2
    Last Post: 06-02-2010, 02:47 AM
  4. Simple list/combo search fails
    By Dega in forum Forms
    Replies: 4
    Last Post: 02-08-2010, 08:39 AM
  5. Parameter Query Fails Occasionally
    By jp2access in forum Programming
    Replies: 0
    Last Post: 08-26-2009, 07:33 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums