By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,779 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,779 IT Pros & Developers. It's quick & easy.

autoexec macro for application access not a database

P: n/a
Hi everybody:

This will be not easy to explain as my mother language is not english,
so my apologies in advance if it sounds confusing.

We have a database access 97 wich controls time of people in their job
in order to finally know how many money costs us to run some projects.

People always estimates the time when reporting and we do have the
impression they really underestimate the time.

So we create some auto_run macros in power point in an add-ins, so
everytime power point is opened it first takes them to the access
database so they don't forget to register the job they are going to
do. Same thing with excel in an workbook open and new book, and same
for word on new document or open word or open document.

But... Sometimes they need to use other databases in access for other
kind of jobs which has to be controlled as well, so, I wonder if there
is an autoexec in the application not in an specific database, so
everytime access is opened it opens first the "MyTime.mdb" unless it
is already opened or being opened in that same moment... or should I
run an autoexec in every database they are using. I was wondering
where it is located the blank database as the normal.dot in word,
cause I have the impression I should have to locate there the macro.

I was also thinking in a front end in access to run the other
applications from a form, but that will not control the jobs done
directely when you open a file double clicking it in windows
directories.... I know we can't control everything !!! but we really
need to do this, because people can't always explain their time
consuming so new tasks are being assigned and believe me they are very
tired and over worked :( This can be a way out and finally to
demonstrate how many time it really takes to do their jobs...
including mine :(

Ok, that's it...

I hope you can help me on this !!!

Mariana Vivar
Nov 13 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Yes, you can do this. Go to the Macro tab and create a new macro. Choose
RunApp for the Action and for the command line put in the path to the
MyTime.mdb file. Save the macro with the name AutoExec.

Hope this helps

--
David Hodgkins, MCSD, MCDBA, MCSE
JSTAR Software Solutions
4402 Sweet Cherry Ln.
Kalamazoo, MI 49004
www.jstarsoftware.com - Home of AutoCompact for Access Databases
269-382-2931
"mvivar" <mv****@yahoo.com> wrote in message
news:6e************************@posting.google.com ...
Hi everybody:

This will be not easy to explain as my mother language is not english,
so my apologies in advance if it sounds confusing.

We have a database access 97 wich controls time of people in their job
in order to finally know how many money costs us to run some projects.

People always estimates the time when reporting and we do have the
impression they really underestimate the time.

So we create some auto_run macros in power point in an add-ins, so
everytime power point is opened it first takes them to the access
database so they don't forget to register the job they are going to
do. Same thing with excel in an workbook open and new book, and same
for word on new document or open word or open document.

But... Sometimes they need to use other databases in access for other
kind of jobs which has to be controlled as well, so, I wonder if there
is an autoexec in the application not in an specific database, so
everytime access is opened it opens first the "MyTime.mdb" unless it
is already opened or being opened in that same moment... or should I
run an autoexec in every database they are using. I was wondering
where it is located the blank database as the normal.dot in word,
cause I have the impression I should have to locate there the macro.

I was also thinking in a front end in access to run the other
applications from a form, but that will not control the jobs done
directely when you open a file double clicking it in windows
directories.... I know we can't control everything !!! but we really
need to do this, because people can't always explain their time
consuming so new tasks are being assigned and believe me they are very
tired and over worked :( This can be a way out and finally to
demonstrate how many time it really takes to do their jobs...
including mine :(

Ok, that's it...

I hope you can help me on this !!!

Mariana Vivar

Nov 13 '05 #2

P: n/a
"David Hodgkins" <dh*******@jstarsoftware.com> wrote in message news:<vP****************@fe03.lga>...
Yes, you can do this. Go to the Macro tab and create a new macro. Choose
RunApp for the Action and for the command line put in the path to the
MyTime.mdb file. Save the macro with the name AutoExec.

Hope this helps


Thank you very much, but it doesn't work, message is that cannot call
the application using RunApp...
when I try in a function it works...

Function autoexec()
On Error GoTo autoexec_Err

Call Shell("""C:\Archivos de programa\Microsoft
Office\Office\MSACCESS.EXE"" ""C:\Mis documentos\work\mytime.mdb""",
1)
autoexec_Exit:
Exit Function

autoexec_Err:
MsgBox Error$
Resume autoexec1_Exit

End Function
If I change the autoexec macro to call that function, it doesn't work
either.

But what I want to do is to make access application open the
mytime.mdb, so you open access without opening a database and it
already calls the mytime.mdb, and I cannot create a macro outside a
database file, I need something like normal.dot or personal.xls or
blank.pot to install it there, and I cannot find the equivalent in
access....

:(
I will continue looking for... any help it would be very appreciated.
Thanks
Nov 13 '05 #3

P: n/a
So what's the ultimate goal here? writing a record to the MyTime.MDB
when they open the other database? You can use a workspace and open
the second database within that workspace, do what you want (add
records etc) and then close the second DB and the workspace....

Nov 13 '05 #4

P: n/a
pi********@hotmail.com wrote in message news:<11**********************@o13g2000cwo.googleg roups.com>...
So what's the ultimate goal here? writing a record to the MyTime.MDB
when they open the other database? You can use a workspace and open
the second database within that workspace, do what you want (add
records etc) and then close the second DB and the workspace....


What I do want is everytime the application access is opened, I mean
the program, it opens mytime.mdb so, if you open the application from
the icon in windows you'll have mytime.mdb, if you open another
database you'll have mytime.mdb as well, so nobody forgets to register
their activities.

I knew it was confusing... I'm sorry...

Mariana Vivar
Nov 13 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.