Open Access db through command line

Hi,
My objective is to create a DTS task execute process task that will open Access db and once the access db is open it will automatically execute AutoExec macro.
Can you tell me How to open an access database through command line/.bat file ?
How to call that .bat file in my DTS ?
Syd2008Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

digital_thoughtsCommented:
Take a look at http://support.microsoft.com/kb/209207

"C:\Program Files\Microsoft Office\Office\msaccess.exe" "C:\Program Files\Microsoft Office\Office\samples\northwind.mdb"
0
Rey Obrero (Capricorn1)Commented:
what  exactly are you trying to do?

copy this in a notepad and save as .bat

c:\program files\Microsoft office\office11\msaccess c:\folder\xxx.mdb /X MacroName

normally you can run a .bat file using Scheduled Task not sure about DTS

0
digital_thoughtsCommented:
To clarify on my prior post, in DTS, create a new "Execute Process Task", in the Win32 process textbox, enter/browse to your path to Microsoft Access, will depend on version of Office you have. Then in the parameters textbox, enter the full database path in quotes (i.e. - "C:\Program Files\Microsoft Office\Office\samples\northwind.mdb")
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Syd2008Author Commented:
I create a "execute process task"
and in Win32----->browse to my access db.mdb
Parameter--->"c:\folder_name.........Access.mdb"

when I try to execute this task its giving me an error msg: general error-2147024703(800700c1) any idea why I am getting this error ?
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.