A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

running access 2007 in batch file



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2010, 10:42 PM posted to microsoft.public.access
Richard65
external usenet poster
 
Posts: 1
Default running access 2007 in batch file

How do i run access 2007 in a batch file? Even with an autoexec macro, i keep
getting the "Getting started with Microsoft Access" screen" and I have to
click on the database name to get the autoexec to run.
  #2  
Old April 20th, 2010, 12:15 AM posted to microsoft.public.access
John W. Vinson
external usenet poster
 
Posts: 18,261
Default running access 2007 in batch file

On Mon, 19 Apr 2010 14:42:01 -0700, Richard65
wrote:

How do i run access 2007 in a batch file? Even with an autoexec macro, i keep
getting the "Getting started with Microsoft Access" screen" and I have to
click on the database name to get the autoexec to run.


Use a command line to open the database, and use the /x switch to execute a
specified startup macro:

"C:\Program Files\\Microsoft Office\Office14\msaccess.exe"
"somepath\mydata.accdb" /x Macroname

or the appropriate changes to file and path names.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 02:08 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.