S
Shooter4Life8
I am trying to run a macro from my VB.NET program. Here is my code.
Dim myAccess As Access.Application
Dim allMacro As String = "ALL-Macros"
myAccess.DoCmd.RunMacro(allMacro)
I get the error.
"An unhandled exception of type 'System.NullReferenceException'
occurred in
WindowsApplication1.exe
Additional information: Object reference not set to an instance of an
object."
I am new to running other programs through a program of my own and am
not sure what I am doing wrong. Any help or pointers on the subject are
welcome!
Thanks!
Dim myAccess As Access.Application
Dim allMacro As String = "ALL-Macros"
myAccess.DoCmd.RunMacro(allMacro)
I get the error.
"An unhandled exception of type 'System.NullReferenceException'
occurred in
WindowsApplication1.exe
Additional information: Object reference not set to an instance of an
object."
I am new to running other programs through a program of my own and am
not sure what I am doing wrong. Any help or pointers on the subject are
welcome!
Thanks!