This little utility function is something I developed to help
during an Access development project. It grew out of the time
wasted and frustration experienced while trying to create
copies of an Access application in different directories. The
application follows a standard Access development technique:
the code is placed in one file and the data in another. It also
has all of its files in one directory. I believe many Access
applications are developed in this manner (many of the Access
development texts recommend this setup).

The function is named AutoReattachTables, and does just that.
It will reattach tables into files located in the same directory
as the code database file. In short, this means you can just copy
matching code and table database files from one directory to
another, call this function (from the AutoExec macro, for
instance), and then everything works as expected.

The syntax for the function is:

	Status = AutoReattachTables(VerifyPrompt)

Where VerifyPrompt is a boolean (True/False) which controls
whether the user is prompted to do the update (if set to False,
the update is unconditional), and Status is a boolean indicating
success (True) or failure (False) of the operation.

This routine is freeware - a little attempt to return something 
to those people who have donated code that has benefitted me.

Theo Pozzy
73641,2605
