G
Guest
Hi, I need to be able to launch an Access 2000 application with command line parameters to have some startup info preselected. According to the documentation, I should be able to include /cmd and a parameter on the command line, and then read the value using the Command function. However, I can't get it to work. Here are the details
I'm launching the app from Start,Run as follows: c:\temp\mydb.mdb /cmd "Ken" (I've tried various combinations of forward slash, back slash, quotes, no quotes, etc with no effect)
Mydb.mdb has a startup form with the following code
Private Sub Form_Open(Cancel As Integer
If Command = "Ken" The
MsgBox "got it
Els
MsgBox "no good
End I
End Su
Ideally I would like to assign the parameter to a variable to take subsequent action, but for now I can't even get this simple exampe to work.
Appreciate any suggestions
Thanks, Ken
I'm launching the app from Start,Run as follows: c:\temp\mydb.mdb /cmd "Ken" (I've tried various combinations of forward slash, back slash, quotes, no quotes, etc with no effect)
Mydb.mdb has a startup form with the following code
Private Sub Form_Open(Cancel As Integer
If Command = "Ken" The
MsgBox "got it
Els
MsgBox "no good
End I
End Su
Ideally I would like to assign the parameter to a variable to take subsequent action, but for now I can't even get this simple exampe to work.
Appreciate any suggestions
Thanks, Ken