A kind of proces or deamon or thread
Hello,
I'm new to Access.
I have in a param table where I have put some times in it. I want every day at the times which are filled in de param table, execute a query.
Let say:
record 1 in param table: 08:00:00
record 2 in param table: 10:00:00
record 3 in param table: 12:00:00
I suppose I have to made a macro or some VBA code in Access or whatever, which is running in the application background and doing the query on the param table. The result is then the three records.
Then testing if the time is already reached. If it is reached then execute the query to export data to a XML file, write the status in the tabel that the query for that day/time is executed.
Then it can sleep for a while and wake's up a half an hour later.
I hope that I'm clear what I mean. My issue is how do you write a program which is running in the background and let say sleeps a certain time and wake up. execute some code and is sleeping again?
What is the right way to do that?
- can it be done in Access?
- must I create a process?
- must I do it by a thread? but how
- must I create a service? (I have never done this)
Can somebody help me with some advise or better some code?
Thanks in advance.
Nico
Hello,
I'm new to Access.
I have in a param table where I have put some times in it. I want every day at the times which are filled in de param table, execute a query.
Let say:
record 1 in param table: 08:00:00
record 2 in param table: 10:00:00
record 3 in param table: 12:00:00
I suppose I have to made a macro or some VBA code in Access or whatever, which is running in the application background and doing the query on the param table. The result is then the three records.
Then testing if the time is already reached. If it is reached then execute the query to export data to a XML file, write the status in the tabel that the query for that day/time is executed.
Then it can sleep for a while and wake's up a half an hour later.
I hope that I'm clear what I mean. My issue is how do you write a program which is running in the background and let say sleeps a certain time and wake up. execute some code and is sleeping again?
What is the right way to do that?
- can it be done in Access?
- must I create a process?
- must I do it by a thread? but how
- must I create a service? (I have never done this)
Can somebody help me with some advise or better some code?
Thanks in advance.
Nico
Last edited: