B
blee
I have an database that I am opening with a bat file. This is being used to
open the contacts form by the telephone number calling.
The command line I am using is as follows:
start "" "c:\Database\Maintenance.mdb" /cmd %1
The correct form opens without a problem, Iam using autoexec macro that runs
code CheckCommandLine and I have a "Contacts" module:
Public Function CheckCommandLine()
If Len(Command) = 0 Then Exit Function
DoCmd.Openform "Contacts"
DoCmd.GoToControl "ContactId"
DoCmd.FindRecord Command
End Function
All great so far when the first call comes in the bat file is run by my
external software and the correct contact form is opened. But I have to close
the access data base for it to work for the next incoming call.
Help !! I need to leave the database open and the bat file just used to
"Filter" the form
open the contacts form by the telephone number calling.
The command line I am using is as follows:
start "" "c:\Database\Maintenance.mdb" /cmd %1
The correct form opens without a problem, Iam using autoexec macro that runs
code CheckCommandLine and I have a "Contacts" module:
Public Function CheckCommandLine()
If Len(Command) = 0 Then Exit Function
DoCmd.Openform "Contacts"
DoCmd.GoToControl "ContactId"
DoCmd.FindRecord Command
End Function
All great so far when the first call comes in the bat file is run by my
external software and the correct contact form is opened. But I have to close
the access data base for it to work for the next incoming call.
Help !! I need to leave the database open and the bat file just used to
"Filter" the form