C
Chris
I've done a TON of looking and reading on this subject and have found some
ideas, but nothing that is working for me. I could really use some insight
here. Access 2003, XP
In a nutshell:
1. I want to open my app via a scheduled task.
2. I want to send the database a command line argument (in order to specify
which task to run).
3. I do not want the security warnings to come up.
4. I want my scheduled code to run (which, depending on the task, takes
between 30 seconds and about 2 minutes.)
5. I want the database to close.
I have tried to make a script with the code:
dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' set macro security LOW.
o.opencurrentdatabase "mypath\mydb.mdb"
o.visible=true
o.usercontrol=true
set o=nothing
which bypasses the security but then hangs Access without completing the task.
Any help?
ideas, but nothing that is working for me. I could really use some insight
here. Access 2003, XP
In a nutshell:
1. I want to open my app via a scheduled task.
2. I want to send the database a command line argument (in order to specify
which task to run).
3. I do not want the security warnings to come up.
4. I want my scheduled code to run (which, depending on the task, takes
between 30 seconds and about 2 minutes.)
5. I want the database to close.
I have tried to make a script with the code:
dim o
set o=createobject ("Access.Application")
o.automationsecurity=1 ' set macro security LOW.
o.opencurrentdatabase "mypath\mydb.mdb"
o.visible=true
o.usercontrol=true
set o=nothing
which bypasses the security but then hangs Access without completing the task.
Any help?