PC Review


Reply
 
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      9th Sep 2008
Hopefully a dumb question...

Say I have a ton of pre-existing databases on which I need to run the
same standard routines - e.g. create a union query to generate a
normalized view of a table's data,
create several summary queries... etc

I need to run these routines on pretty much every database - the logic
of what gets created could get determined by a function...

Would I put all this code into an MDA and then just register it and
run the stuff? Or would I be better off putting the code into a
regular MDE that could attach to another database and do all the work
under the covers?

If I would be better off creating an MDA, is there a good link
somewhere that explains how to do it?
(I'm using Access 2002, if it matters.)

Thanks
 
Reply With Quote
 
 
 
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      9th Sep 2008
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

>Would I put all this code into an MDA and then just register it and
>run the stuff? Or would I be better off putting the code into a
>regular MDE that could attach to another database and do all the work
>under the covers?


There's no real difference between an MDA and MDE other than th
extension. Although it's sort of understand than an MDA will have the
USysRegInfo table so you the developer or power user con conveniently
put an add-in in place using the appropriate menu item. Utilities
such as Rick Fisher's Find and Replace use this table.

However you don't really need an add-in like that. You just want to
run code from a "code" MDE. See
http://www.granite.ab.ca/access/addins.htm for some tips. And do some
searches using "microsoft access add-in" as your keyword.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      9th Sep 2008
On Sep 8, 11:24*pm, "Tony Toews [MVP]" <tto...@telusplanet.net> wrote:
> "pietlin...@hotmail.com" <pietlin...@hotmail.com> wrote:
> >Would I put all this code into an MDA and then just register it and
> >run the stuff? *Or would I be better off putting the code into a
> >regular MDE that could attach to another database and do all the work
> >under the covers?

>
> There's no real difference between an MDA and MDE other than th
> extension. *Although it's sort of understand than an MDA will have the
> USysRegInfo table so you the developer or power user con conveniently
> put an add-in in place using the appropriate menu item. *Utilities
> such as Rick Fisher's Find and Replace use this table.
>
> However you don't really need an add-in like that. *You just want to
> run code from a "code" MDE. * Seehttp://www.granite.ab.ca/access/addins..htmfor some tips. *And do some
> searches using "microsoft access add-in" as your keyword.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> * *Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> * *Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
> * *Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/


Okay, great! Thanks to you both for clarifying. BTW, when did M$
decide you needed to log in to read their help files? So much for
free information...
 
Reply With Quote
 
John W. Vinson
Guest
Posts: n/a
 
      9th Sep 2008
On Mon, 8 Sep 2008 22:00:02 -0700 (PDT), "(E-Mail Removed)"
<(E-Mail Removed)> wrote:

>Okay, great! Thanks to you both for clarifying. BTW, when did M$
>decide you needed to log in to read their help files? So much for
>free information...


You don't. I don't log in, for that matter.

The webpage is NOT the newsgroups - it's just their (not very good)
newsreader. You can use Outlook Express or Agent or any other newsreader,
pointed to msnews.microsoft.com as the news server, to get free and unfettered
access to these newsgroups.
--

John W. Vinson [MVP]
 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      9th Sep 2008
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

>BTW, when did M$
>decide you needed to log in to read their help files? So much for
>free information...


<shrug> No idea. I'm still mostly using A2003 along with A97 help
files.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
pietlinden@hotmail.com
Guest
Posts: n/a
 
      9th Sep 2008
On Sep 9, 1:28*am, "Tony Toews [MVP]" <tto...@telusplanet.net> wrote:
> "pietlin...@hotmail.com" <pietlin...@hotmail.com> wrote:
> >BTW, when did M$
> >decide you needed to log in to read their help files? *So much for
> >free information...

>
> <shrug> *No idea. *I'm still mostly using A2003 along with A97 help
> files.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> * *Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> * *Microsoft Access Links, Hints, Tips & Accounting Systems athttp://www.granite.ab.ca/accsmstr.htm
> * *Tony's Microsoft Access Blog -http://msmvps.com/blogs/access/


Is it possible to get the A97 help files somewhere? every help file
since then has been a total joke.
 
Reply With Quote
 
david
Guest
Posts: n/a
 
      9th Sep 2008
In the current versions of Access it is difficult if not impossible
to reliably "call" code in a database added as an add-in. So if
you intend to ever call the code from your application, you need
to load it as a library reference, or include it in your application.

On the other hand, once you've registered an add-in it is always
registered when you start Access, so if you intend to only run the
code from the add-in menu, you never again need to include it
in your application, or attach it to your application as a reference.

It doesn't work as expected if you are using a command line
"profile" to start Access, but nobody does that anymore.

CurrentDB always refers to the main loaded application database.
In an Add-In or Reference CodeDB refers to the library database.
DoCmd actions always refer to CurrentDB. In a referenced library
forms and reports and queries bind to tables and queries in the
library database. I think that is the same in an Add-In.

So if you have any bound forms in your library, they won't bind to
the tables in your target application database. So if your tools
include forms that you have to bind to your data in each application,
better to include the code in each application, rather than using
a library reference. I think an Add-In works the same way as a
library reference. But most tools don't have to be re-linked every
time you use them, so that was never a limitation for Add-Ins.


To create an Add-in, all you need to do is add to the MDB the
USysRegInfo table which has the function names and menu names.

(david)

<(E-Mail Removed)> wrote in message
news:f4fb1d38-6feb-4efa-b27e-(E-Mail Removed)...
> Hopefully a dumb question...
>
> Say I have a ton of pre-existing databases on which I need to run the
> same standard routines - e.g. create a union query to generate a
> normalized view of a table's data,
> create several summary queries... etc
>
> I need to run these routines on pretty much every database - the logic
> of what gets created could get determined by a function...
>
> Would I put all this code into an MDA and then just register it and
> run the stuff? Or would I be better off putting the code into a
> regular MDE that could attach to another database and do all the work
> under the covers?
>
> If I would be better off creating an MDA, is there a good link
> somewhere that explains how to do it?
> (I'm using Access 2002, if it matters.)
>
> Thanks



 
Reply With Quote
 
Tony Toews [MVP]
Guest
Posts: n/a
 
      11th Sep 2008
"(E-Mail Removed)" <(E-Mail Removed)> wrote:

>Is it possible to get the A97 help files somewhere? every help file
>since then has been a total joke.


Not to my knowledge.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create a macro to create excel line graph with coloured pointers anddata lables anuj datta Microsoft Excel Charting 1 30th Sep 2009 04:04 PM
how to create an auto reply rule/macro that wont create a new mess squalltheonly Microsoft Outlook Discussion 4 15th Nov 2008 04:03 PM
reset button, create excel, import table, send e-mail, create back-up matthew nance Microsoft Access 0 27th Jul 2004 06:52 PM
Read Bitmap and create Method to Create Image at runtime Mark Johnson Microsoft Dot NET Framework 1 28th Nov 2003 08:26 PM
Create user on win2k domain does not create mailbox on ex2k server Jeff Howard Microsoft Windows 2000 0 1st Oct 2003 12:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 AM.