=?Utf-8?B?Qm9iIENvbGxpbnNvbg==?=
Well the way I read your better method (which I accept is better)
the system needs to know where the second copy of the front end is
stored so that it can copy it. Currently I have no way of knowing
this (and the front end cannot copy itself unfortunately).
Er, you could have your installer create the backup copy in the same
folder as the front end. Or you could put it in the same folder as
the back end, and then you could use the connect string for your
linked tables to figure out where it is.
This is not a complexity that is difficult to overcome.
What your suggestion has done is to make me rethink the way my
product is deployed. I think what I will do is suggest to the
customer that a backup copy of the front end is stored in the same
folder as the back end, say called XXXFrontEndBackup.mdb) and then
check for its existance upon loading of the front end and after an
appropriate error message bomb off if it isn't there. This way I
can use your method AND make sure the customer has a backup (which
bitter experience tells me some don't ...).
I'm really glad my suggestion has helped you.
Your method overcomes a problem that I have just encountered in
that without re thinking the way I do custom toolbars the custom
toolbars don't get 'copied' under Access 2007 so my 'Archive'
system doesn't have the custom toolbars that the original system
has. (I know that I have to get into the new method of
toolbars/ribbons eventually but up until 2007 I have been able to
do my development work in 97 and just convert to 2000, 2002/3
without any specific coding for the appropriate version. Thanks
to MS I will now, eventually, have to do a specific version for
2007, bummer).
There seems to be something of a bias against using template files
among modern programmers. I don't know if that's a holdover from the
old days when disk space was expensive, or if it's just that for
certain uses, template-based operations become problematic (since
files created from a template don't inherit changes to the
template).
But it really is a very simple way to do things, and often much
easier to implement than most of the alternatives.
Anyway, I still reckon that the way of using a second instance of
Access is the only way to do my Archive procedure if you don't
know where there is a second copy of the front end.
But that's pretty easily fixed by putting it in the same folder as
the back end.
Having said that I guess that you could put
some of the archive procedure in the backend, and do the 'copy'
part of the archive from there, which means I guess that you are
correct!
Anyway, thanks for making me think more about it so I will now
provide my customers with a better backed up system. Thanks
I'm glad to have helped.
I'm still waiting for examples of launching another instance of
Access being the only way to accomplish a task. So far, all the
suggestions we've gotten in this thread have been better handled
with in the main Access instance by simply changing the procedures
to something much simpler.
I do believe that I know of two required scenarios:
1. Michael Kaplan's SOON utility:
http://trigeminal.com/lang/1033/utility.asp?ItemID=8#8
2. if someone can get it to work, the SaveAsText 6 operation to back
up data tables in a back end data file (I can't get it to work)
Any others?