Joe said:
Well I looked at it but don't see how that would be much help. I'm
looking for a way to put a button on the form that will allow me to
back up the tables to another location, either a hard drive or CD.
Thanks anyhow I do appreciate it.
Well now you say "back up the tables" and originally you said you wanted the app
to "make a copy of itself". Douglas' response sent you to a solution for the
latter because without using the GUI you can't make an Access app copy or
compact itself, but you can lauch another app that will do the job.
If you just want to back up the data you can run routines to export them one at
a time to a separate file. If your app is split so that the data is in a
separate file you can copy or compact the back end file from code in the front
end providing that all connections to the back end data are first closed. This
is much more difficult in a multi-user environment unless you implement features
to "kick other users out" while this process occurrs.