M
moondaddy
from a .net winforms application I need to start a MS Access 2003
application using the startup command-line and shell. I can start the
application OK, but need to call a public function or a macro that will call
the function and pass in a parameter string. how can I do this and what's
the syntax?
Dim Param As String = "Bla1, bla2, bla3"
Dim FuncName As String = "myStartupFunc"
Dim stAppName As String
stAppName = """C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"" " &
_
"""D:\nwis\Apps\LandMan\VS\TransAct\TransAct\Stallion\TransAct_Stallion_Remote.mdb"""
'This line works good for opening the app
Dim ID As Int32 = Shell(stAppName, AppWinStyle.NormalFocus, False, -1)
But how do I change it to call myStartupFunc and pass Param into
myStartupFunc?
Using the interop libraries in .net are not a good option do to
complications involved in installing on lots of remote computers, licensing,
etc. We've had lots of problems with it and both MS and InstallShield are
stumped. Using the shell command would be way cleaner and less error prone.
Thanks.
application using the startup command-line and shell. I can start the
application OK, but need to call a public function or a macro that will call
the function and pass in a parameter string. how can I do this and what's
the syntax?
Dim Param As String = "Bla1, bla2, bla3"
Dim FuncName As String = "myStartupFunc"
Dim stAppName As String
stAppName = """C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE"" " &
_
"""D:\nwis\Apps\LandMan\VS\TransAct\TransAct\Stallion\TransAct_Stallion_Remote.mdb"""
'This line works good for opening the app
Dim ID As Int32 = Shell(stAppName, AppWinStyle.NormalFocus, False, -1)
But how do I change it to call myStartupFunc and pass Param into
myStartupFunc?
Using the interop libraries in .net are not a good option do to
complications involved in installing on lots of remote computers, licensing,
etc. We've had lots of problems with it and both MS and InstallShield are
stumped. Using the shell command would be way cleaner and less error prone.
Thanks.