Solved

how run macro using scheduled task on a shared drive

Posted on 2007-11-28
2
1,341 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 120

Accepted Solution

by:
Rey Obrero (Capricorn1) 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Using Microsoft Access, learn some simple rules for how to construct tables in a relational database. Split up all multi-value fields into single values: Split up fields that belong to other things into separate tables: Make sure that all record…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

810 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