473,396 Members | 2,002 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

autoexec macro for application access not a database

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
4 6146
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
"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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: MLH | last post by:
My autoexec macro in an Access 2.0 database has 2 lines. The first runs DoMenuItem - Database - Window - Hide. The second lines is Runcode - Initialize(). Initialize is a procedure in a global...
7
by: Tom Chidwick | last post by:
Hello, I've custom-built a fairly extensive object model that is designed to run in the background and control the opening and closing of related forms. The whole thing kicks-off with an...
5
by: MLH | last post by:
I have problems getting the CTRL-d, CTRL-w and other 'hotkey combo' assignments to work in Access 97. I just imported the autoexec macro directly from Access 2.0, so its no surprise. Some are...
6
by: MLH | last post by:
Did A97, perchance, do away with the need for an AutoExec macro to initiate an autoexec sequence for databases? Or, must we still suffer with that hideous macro?
5
by: dick | last post by:
I can't seem to get AutoExec to run a function. Per an article on this group, I: 1) built a boolean function in a module that simply issues a MsgBox, then returns True 2) in AutoExec macro, I...
6
by: Takeadoe | last post by:
Dear NG, Can someone assist me with writing the little code that is needed to run an update table query each time the database is opened? From what I've been able to glean from this group, the...
0
by: janders468 | last post by:
Hi, I have been messing around with automating Access (I am attempting to actually manipulate the Access objects themselves so it requires going beyond data access) from a c# program (long story...
8
by: kini113 | last post by:
I want to update my database every night at 10pm. I have a Macro that runs all of the queries needed to update the database (which is also saved as a VBA module) and an AutoExec Macro to runs the...
4
by: kini113 | last post by:
I want to update my MS Access database every night at 10pm. I have a Macro that runs all of the queries needed to update the database (which is also saved as a VBA module) and an AutoExec Macro to...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.