Name 'CreateObject' is not declared error - InfoPath Dev
in

InfoPath Dev

Name 'CreateObject' is not declared error

Last post 07-31-2012 08:50 AM by BurgessJunction. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 07-31-2012 08:50 AM

    Name 'CreateObject' is not declared error

    This is the code I have so far but the editor is kicking out an error that says: Name 'CreateObject' is not declared 

     

    Public Sub CTRL1_5_Clicked(ByVal sender As Object, ByVal e As ClickedEventArgs)

    Dim appAccess As Object

    appAccess = CreateObject("Access.Application")

    appAccess.OpenCurrentDatabase("Plan.mdb")

    appAccess.Run("Macro1")

    appAccess.CloseCurrentDatabase()

    appAccess.Quit()

    End Sub

     

Page 1 of 1 (1 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.