I've created a custom logon form for a multi-user database rather than using Access' built-in logon. Before adding the custom logon form, several users used the /user and /pwd switches. So I tried to let them similarly do this by passing the username and password arguments to the custom form by using the /cmd switch.
ACCESS.EXE "CustomForm.mdb" /cmd "users name"
Then I try to get the text using the Command function.
[red]Dim strTEXT as variant
strTEXT = Command()[/red]
But the strTEXT returns a 0.
I tried using the text following the /cmd with and without quotes, but the result is the same.
How can I get text from a command line switch?
ACCESS.EXE "CustomForm.mdb" /cmd "users name"
Then I try to get the text using the Command function.
[red]Dim strTEXT as variant
strTEXT = Command()[/red]
But the strTEXT returns a 0.
I tried using the text following the /cmd with and without quotes, but the result is the same.
How can I get text from a command line switch?