Solved

how run macro using scheduled task on a shared drive

Posted on 2007-11-28
2
1,340 Views
Last Modified: 2012-06-27
Hello Experts!  I've created a scheduled task to run a macro in an .mdb that resides on a shared drive (I:\), but I can't get it to run, I get the error:
"Microsoft Access can't find the data base file I:\MyDb.mdb - Make sure you entered the correct path and file name"
Here is my script:
"C:\Program Files\Microsoft Office\Office12\MSAccess.exe" "I:\MyFolder\MyDb.MDB" /x mcoExportMyTable
How can I correct this? Is it not possible to run a scheduled task on a file that resides on a server share even if I have admin rights?
0
Comment
Question by:jimshock
2 Comments
 
LVL 119

Accepted Solution

by:
Rey Obrero earned 500 total points
ID: 20368523
use the UNC for the drive not the mapped drive

"C:\Program Files\Microsoft Office\Office12\MSAccess.exe" "\\ServerName\MyFolder\MyDb.MDB" /x mcoExportMyTable
0
 

Author Closing Comment

by:jimshock
ID: 31411515
Thank you so much, that did it!!
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

This article is a continuation or rather an extension from Cascading Combos (http://www.experts-exchange.com/A_5949.html) and builds on examples developed in detail there. It should be understandable alone, but I recommend reading the previous artic…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now