benlinkknilneb
Programmer
Hi all,
I've got an access database that produces a report. It's set by a scheduled task to run in "headless" mode via a service account, and it's set to auto-start running my code when I kick off the database.
This all works fine if I manually review it. However, when the scheduled task kicks it off, I fail with error 3086: Could not delete from specified tables.
This table is a local Access table that I use to temporarily hold things while I'm working through the report creation process. It's not attached to anything. All I'm doing is "DELETE * FROM TEMPTable;" via a RunSQL command. As I said before, if I run this code manually, it works fine.
I noticed that at the same time the Access process gets automatically started by the task, the System Event log shows a 1003: "The Software Protection service has completed licensing status check." Googling so far hasn't turned up anything interesting on this other than people whose Office installations won't start up at all... but that doesn't match my problem.
However, I have other access databases on the same server that are scheduled in the same way (albeit at different times) and they run without incident.
Can anyone see what I'm missing?
Ben
I've got an access database that produces a report. It's set by a scheduled task to run in "headless" mode via a service account, and it's set to auto-start running my code when I kick off the database.
This all works fine if I manually review it. However, when the scheduled task kicks it off, I fail with error 3086: Could not delete from specified tables.
This table is a local Access table that I use to temporarily hold things while I'm working through the report creation process. It's not attached to anything. All I'm doing is "DELETE * FROM TEMPTable;" via a RunSQL command. As I said before, if I run this code manually, it works fine.
I noticed that at the same time the Access process gets automatically started by the task, the System Event log shows a 1003: "The Software Protection service has completed licensing status check." Googling so far hasn't turned up anything interesting on this other than people whose Office installations won't start up at all... but that doesn't match my problem.
However, I have other access databases on the same server that are scheduled in the same way (albeit at different times) and they run without incident.
Can anyone see what I'm missing?
Ben