Hi Erel,
I have the following situation:
I receive SMS's which I intercept with a service and log the values (tank levels) in MyDB. The values are currently logged to the MyDB in a sub in a code module.
I open MyDB when my App starts and close it when "UserClosed".
...this works fine.
I also intercept the SMS's using intent while "Userclosed = True" and the service is started.
When this happens, I try to access the sub in the code module and since I can't use callsub on the module I have an error that the program is not running.
I intend to leave the code in the code module for when the program is running (to allow deliveries to be added/edited) and move the data logging code (log the tank level) to the service (every time a SMS is received - whether the program is running or not).
I have the following situation:
I receive SMS's which I intercept with a service and log the values (tank levels) in MyDB. The values are currently logged to the MyDB in a sub in a code module.
I open MyDB when my App starts and close it when "UserClosed".
...this works fine.
I also intercept the SMS's using intent while "Userclosed = True" and the service is started.
When this happens, I try to access the sub in the code module and since I can't use callsub on the module I have an error that the program is not running.
I intend to leave the code in the code module for when the program is running (to allow deliveries to be added/edited) and move the data logging code (log the tank level) to the service (every time a SMS is received - whether the program is running or not).
If what I have read in other posts, am I correct, in that, you are saying that if I:
open MyDB1 from xyz.db in the main program, and,
open MyDB2 from xyz.db in the service,
that they should be fine even if the same tables are written to at the same time?
open MyDB1 from xyz.db in the main program, and,
open MyDB2 from xyz.db in the service,
that they should be fine even if the same tables are written to at the same time?