[AccessD] A2K:Create MDA dB to hold code

Darren DICK d.dick at uws.edu.au
Mon Aug 4 19:58:15 CDT 2003


NO ARCHIVE
Thanks John
Good info

DD
----- Original Message ----- 
From: "John Bartow" <john at winhaven.net>
To: "Access Developers discussion and problem solving" <accessd at databaseadvisors.com>
Sent: Tuesday, August 05, 2003 1:59 AM
Subject: RE: [AccessD] A2K:Create MDA dB to hold code


> Ditto's to that here.
> 
> If you include the library in your installation script it isn't a problem.
> If you're passing it around with out a script then if you always place the
> library db in the System32 folder it shouldn't be a problem either.
> 
> IMO its a personal preference and there's pros and cons to both.
> 
> One pro - other developers can use the exact same reference rather than
> copying the code or referencing your app db. If you put a listing of your
> library code procedures and what they do on your intranet and always install
> the library in system32 so it is an easy refernce it can save some time and
> reduncancy.
> 
> One con is when you use an mde library (to protect the code) you always have
> to compile with the exact same library - therefore you have to synch the
> library with the app.
> 
> What we do is put generic (and very reliable) code in a library and app
> specific or new code in the app db.
> 
> HTH
> John Bartow
> 
> > -----Original Message-----
> > From: accessd-bounces at databaseadvisors.com
> > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte
> > Foust
> > Sent: Monday, August 04, 2003 10:17 AM
> > To: Access Developers discussion and problem solving
> > Subject: RE: [AccessD] A2K:Create MDA dB to hold code
> >
> >
> > Actually, we use a code library in our commercial applications.  That's
> > what the recent thread on broken references dealt with.  It's a standard
> > part of our installation.
> >
> > Charlotte Foust
> >
> > -----Original Message-----
> > From: Darren DICK [mailto:d.dick at uws.edu.au]
> > Sent: Sunday, August 03, 2003 11:05 PM
> > To: Access Developers discussion and problem solving
> > Subject: Re: [AccessD] A2K:Create MDA dB to hold code
> >
> >
> > Hi Bob
> > Thanks heaps for the info
> >
> > Darren
> >
> > ----- Original Message -----
> > From: "Bob Hall" <rjhjr at cox.net>
> > To: "AccessD List" <AccessD at databaseadvisors.com>
> > Sent: Monday, August 04, 2003 1:52 PM
> > Subject: Re: [AccessD] A2K:Create MDA dB to hold code
> >
> >
> > > On Mon, Aug 04, 2003 at 12:02:54PM +1000, Darren DICK wrote:
> > > > Hello all
> > > > I want to separate my 'favourite's code bits and pieces into a
> > > > separate db (MDA?) then have any new dB 'reference' the MDA.
> > > >
> > > > 1    How do I go about this?
> > >
> > > You can do this with an mdb file, but mdas and mdes will work also.
> > > Put
> > > the file anyplace where you can find it from your project mdb's
> > browser.
> > > In the VBA IDE, select the References item from the Tool menu. Browse
> > > for your library, and double click it. After that, the public
> > procedures
> > > in any standard modules in your library will be available in your
> > project
> > > mdb.
> > >
> > > > 2    What are the 'gotchas' etc?
> > >
> > > If your mdb is going to be used by anyone other than you, then it's
> > > not worth it, for two reasons:
> > > 1) If you have code in two files instead of one, then you've got
> > >    two files to keep track of, instead of one. You'll be amazed how
> > >    many times you'll forget to include the library file with the
> > >    main file. I'm sometimes forced to divide code between two
> > >    different files, but I avoid it when possible.
> > > 2) Access sets four references for VBA, by default. Additional
> > >    references tend to break. To make your code reliable, you
> > >    have to put code in a start-up form that checks the references and
> > >    repairs any broken references. If you don't do this, you are going
> > >    to have to fix the references for your users whenever they break.
> > >
> > > I have a library of string-parsing routines that I like to keep
> > > handy for various tasks. For example, I've got a routine that finds
> > > the first occurence of a substring after the Nth occurence of another
> > > substring. I always import any routine I use into the mdb that uses
> > it.
> > > The hassle associated with add-ins isn't worth it.
> > >
> > > Bob Hall
> > > _______________________________________________
> > > AccessD mailing list
> > > AccessD at databaseadvisors.com
> > > http://databaseadvisors.com/mailman/listinfo/accessd
> > > Website: http://www.databaseadvisors.com
> > _______________________________________________
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > http://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> > _______________________________________________
> > AccessD mailing list
> > AccessD at databaseadvisors.com
> > http://databaseadvisors.com/mailman/listinfo/accessd
> > Website: http://www.databaseadvisors.com
> >
> >
> 
> _______________________________________________
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com


More information about the AccessD mailing list