I've been distributing a fairly mature, very specific MS Access
application to end users in small offices of colleges for several years
now. This is a part-time venture and low volume operation- this is
somewhat of a hobby for me. Many of my end users are computer phobic
and get little support from their IT departments. It is a split
database so the datafile gets put on the file server and the 3
different front ends get put on each local machine.
MY QUESTION IS: HOW CAN I GET THE FRONT END TO LINK TO THE DATAFILE
WHEN IT IS COPIED TO THE SHARED DRIVE - is there a default way to
designate a path at the time the file is copied?
My normal installation routine is as follows:
1) End users unzip the application and a few supporting files (e.g.
Word Document templates used for merges, etc)
2) Put the datafile on the shared drive.
3) Open one copy of the front end and link it to the back end - I have
code that checks for the backend end at startup, then uses
"DoCmd.RunCommand acCmdLinkTables" to open a file requestor for the
back end. The client uses the file requestor, enters the password for
the backend, and hits 'select all'.
4) After the backend is linked, the end user presses a "Defaults"
button which modifies forms and defaults in the front end (e.g. they
can put their school name on certain reports and screens, select a
default state for forms where addresses are entered, and customize
labels of certain fields that appear in forms and reports.)
5) Once the front end is customized they compact and repair it, then
copy it to a specific directory on the shared drive.
6) Each end user then double clicks on a simple script file ont he
shared drive to create directories on the local machine, copy the front
ends, and copy shortcuts for the front ends onto the desktop. This, of
course, includes the end user customizations from step 4.
Sounds simple, right? I am amazed at how impossible these things are
for many people. I wrote the script files because I spent 2 hours on
the phone one day talking an end user through putting a shortcut for
the database on their desktop. This person really did not know how to
use a mouse or how to copy a file; despite being the most comfortable
person with a computer in their office. I finally realized (after about
an hour) that the only way she knew to find files was from inside
Microsoft Word. There seems to be a whole lot of people who learn
procedures as a series of steps without ever being taught what a file,
directory, or application is... (Apologies for the rant.)
I realize I can purchase commercial installation wizard programs, but
the low volume and profit does not warrant the expense. So:
A) Are there any low-cost/freeware alternatives?
B) Can I beef up my script file to capture the path to the shared drive
in a way that can be passed to the front end, e.g. by writing it to a
text file in the same directory as the front end? Right now I use
mkdir and xcopy to do everything after the customization takes place.
C) Can I write an Access program that will copy and link the files,
e.g. using the Microsoft Scripting Runtime Library to get the path to
the shared drive, copy all the files there, then open them up for
customization?
D) If I can pass the back end location to the front end, can I link
automatically?
D) Any other thought would be appreciated.
Thanks in advance.