473,726 Members | 2,021 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6163
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.c om> wrote in message
news:6e******** *************** *@posting.googl e.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*******@jsta rsoftware.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:\Arc hivos de programa\Micros oft
Office\Office\M SACCESS.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********@hotm ail.com wrote in message news:<11******* *************** @o13g2000cwo.go oglegroups.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
4016
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 module that opens a form. When the form opens, the database window is still present and visible. I thought the first line of the macro would run to completion before the second line started and certainly before any lines in Initialize() were...
7
9455
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 AutoExec macro at startup, using a RunCode action that calls a global function and the rest works great. Pretty good stuff - flies like an eagle, when it works.
5
1882
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 really simple, though... For instance, CTRL-w should just launch ScreenDump(). I can run the FN by calling it this way... dim y as variant y = screendump() But I cannot get the CTRL-w to launch it the way it did in Access 2.0.
6
3652
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
6749
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 wrote a condition "onOpen()=False" including the dbl quotes. For the action I put out another MsgBox saying 'onOp is False'. The 2nd MsgBox always appears. I put a breakpoint in the function. It never triggered, so my function is not being called.
6
6437
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 Autoexec Macro looks like the way to go. Could someone please assist? Thank you very much! Mike
0
1045
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 as to why, but any how...). I am dealing with databases that all have AutoExec macros within them which automatically run when the database opens, which I don't want the database to do. In Access this is bypassed by holding down the shift key. I...
8
18795
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 "Update Inventory" macro. I also scheduled the task to run every night a 10pm. The problem i have is that in order to run the "Update Inventory" macro I have to enter my ODBC password and there is no way to save the password. This there a Macro...
4
4560
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 runs the "Update Inventory" macro. I also scheduled the task to run every night a 10pm. The problem i have is that in order to run the "Update Inventory" macro I have to enter my ODBC password and there is no way to save the password. This there a...
0
8752
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9259
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9182
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9120
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8101
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4521
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4785
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3228
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2639
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.