473,387 Members | 1,379 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,387 software developers and data experts.

Saving Modules in Access

Hi
Is it possible to save Modules in Access the way they are saved in
Excel?

Excel uses Personal.xls for using macros on every Worksheet.

Is there a Personal space in MS Access where to store Modules the same
way? So you can use them on every DB.

Thx
LC

Nov 13 '05 #1
12 1828
ca******@yahoo.com wrote:
Hi
Is it possible to save Modules in Access the way they are saved in
Excel?

Excel uses Personal.xls for using macros on every Worksheet.

Is there a Personal space in MS Access where to store Modules the same
way? So you can use them on every DB.

Thx
LC

I've never heard of it. I usually do File/GetExternalData/Import.

I suppose you could have a blank database and when you create a new one
you could copy it over.

You could also make a reference to that database that holds the macros.
Create a new database. Open up a code module, select References,
browse to the MDB that contains the macros and set a reference to it.
Now call a macro from the other MDB.

You can go to http://groups.google.com advanced search and enter
*Access* for groups and
run macro from another database
for the words to search and you'll get lots of hits.
Nov 13 '05 #2
<duncecap=ON>
Is that what an MDA file is for? Then you can just reference it in
your References list and just use all the code in its libraries?

I *did* check the help files, but they were of no help!

<duncecap=OFF>

Nov 13 '05 #3
ca******@yahoo.com wrote:
Hi
Is it possible to save Modules in Access the way they are saved in
Excel?

Excel uses Personal.xls for using macros on every Worksheet.

Is there a Personal space in MS Access where to store Modules the same
way? So you can use them on every DB.


Yes.

Create an MDA (or an MDB, an MDA is just an MDB renamed), put all your
code in there, then in your main database, set a reference to it.
--
[OO=00=OO]
Nov 13 '05 #4
How many seconds does it take to import a bunch of modules from another
db?
How many seconds does it take to save modules as ".bas" files and to
import them into another db?
How many of our procedures need a little tweeking for a new
application?
How many of our procedures could benefit from that little tweeking?
How significant is the number of modules to the size of a db?
Who wants two files when one will do?

Nov 13 '05 #5
Trevor Best <no****@besty.org.uk> wrote in
news:42***********************@news.zen.co.uk:
ca******@yahoo.com wrote:
Hi
Is it possible to save Modules in Access the way they are saved
in Excel?

Excel uses Personal.xls for using macros on every Worksheet.

Is there a Personal space in MS Access where to store Modules the
same way? So you can use them on every DB.


Yes.

Create an MDA (or an MDB, an MDA is just an MDB renamed), put all
your code in there, then in your main database, set a reference to
it.


I forget if putting the MDA in the Access application folder will
cause it to be automatically loaded. ???

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #6
"lylefair" <ly******@yahoo.ca> wrote in
news:11********************@g14g2000cwa.googlegrou ps.com:
How many seconds does it take to import a bunch of modules from
another db?
How many seconds does it take to save modules as ".bas" files and
to import them into another db?
How many of our procedures need a little tweeking for a new
application?
How many of our procedures could benefit from that little
tweeking? How significant is the number of modules to the size of
a db? Who wants two files when one will do?


How do you then manage code updates to your shared library? Delete
and import the modules every time you start the application?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #7
David W. Fenton wrote:
Trevor Best <no****@besty.org.uk> wrote in
Create an MDA (or an MDB, an MDA is just an MDB renamed), put all
your code in there, then in your main database, set a reference to
it.

I forget if putting the MDA in the Access application folder will
cause it to be automatically loaded. ???


I don't think so.

--
[OO=00=OO]
Nov 13 '05 #8
lylefair wrote:
How many seconds does it take to import a bunch of modules from another
db?
How many seconds does it take to save modules as ".bas" files and to
import them into another db?
How many of our procedures need a little tweeking for a new
application?
How many of our procedures could benefit from that little tweeking?
How significant is the number of modules to the size of a db?
Who wants two files when one will do?


Times the number of front ends using that code, times the number of
times you update that code, a bloody lot.

--
[OO=00=OO]
Nov 13 '05 #9
Trevor Best <no****@besty.org.uk> wrote in
news:42***********************@news.zen.co.uk:
David W. Fenton wrote:
Trevor Best <no****@besty.org.uk> wrote in
Create an MDA (or an MDB, an MDA is just an MDB renamed), put all
your code in there, then in your main database, set a reference
to it.

I forget if putting the MDA in the Access application folder will
cause it to be automatically loaded. ???


I don't think so.


Was that only in Access 2?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #10
Trevor Best <no****@besty.org.uk> wrote in
news:42***********************@news.zen.co.uk:
lylefair wrote:
How many seconds does it take to import a bunch of modules from
another db?
How many seconds does it take to save modules as ".bas" files and
to import them into another db?
How many of our procedures need a little tweeking for a new
application?
How many of our procedures could benefit from that little
tweeking? How significant is the number of modules to the size of
a db? Who wants two files when one will do?


Times the number of front ends using that code, times the number
of times you update that code, a bloody lot.


Is it possible to deploy a single copy of your library on a server
and have multiple users of your front end(s) with references to the
same MDE?

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #11
David W. Fenton wrote:

Is it possible to deploy a single copy of your library on a server
and have multiple users of your front end(s) with references to the
same MDE?


I've never tried it, I don't know if any network issues might pop up in
the same way that running a shared front end off a network share.

--
[OO=00=OO]
Nov 13 '05 #12
Trevor Best <no****@besty.org.uk> wrote in
news:42***********************@news.zen.co.uk:
David W. Fenton wrote:

Is it possible to deploy a single copy of your library on a
server and have multiple users of your front end(s) with
references to the same MDE?


I've never tried it, I don't know if any network issues might pop
up in the same way that running a shared front end off a network
share.


It's all read-only, so it ought to work. And you're not opening
anything that has properties that Access wants to save (like form
filters), so there wouldn't be any write collisions.

Seems like it ought to work.

Might be a performance problem, though.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 13 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Andrew Wrigley | last post by:
Hi I have a database that works OK except in two regards, that I suspect are related. Problem 1. After even minor changes to a form module (ContactFrm), such as editing a comment, I hit the...
5
by: Ross A. Finlayson | last post by:
Hi, I'm scratching together an Access database. The development box is Office 95, the deployment box Office 2003. So anyways I am griping about forms and global variables. Say for example...
7
by: Lauren Quantrell | last post by:
At running the risk of asking how big is too big... Is there a rule of thumb or a best practice that says I may have too many modules? I currently have a Access2K app with about 30 code modules,...
6
by: Kevin | last post by:
I come up with these questions during the day, do some research, and then look for experienced users' input. 1. In Access, we already know it's pretty much an automatic save if you enter data. ...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
1
by: Frank | last post by:
Hi, I want to create some modules to use them in my programs. Now the problem is, how to add the path to these modules permanently to the python search path. For example: import sys...
13
by: Jsnova864 | last post by:
Hi, I got a few simple q's, I think. I'm making a pretty simple RPG but my program is getting too big for me to handle. I’m trying to figure out how to use modules to organize it and I figured out...
0
by: peridian | last post by:
Hi, I have the below code to transfer code modules between Access database files. I have three problems, only one of which is annoying. a) How do you prevent the Save As box from appearing...
3
by: Roy Tong | last post by:
I maintain a shared database on Access 97. I've just tried converting a test copy of the database to 2003 and it appeared to work OK. That is I got no error messages. However then I look at my...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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,...

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.