?
=?iso-8859-1?Q?H=E9jja_K=E1roly?=
I'm using Access 97. I need to send periodically
patching mdb-s to my clients. I transport objects (forms,
reports etc.) in an .mdb that (when opened) should
replace the old objects in (or copy new objects to) the
clients' databases. I tried to uses the DoCmd.CopyObject
and DoCmd.TransferDatabase methods to perform the
replacements, but both methods do generate error when the
transported object exists in the destination database
too, then Access shuts down.
I tried then to delete first through automation
existing objects that should be replaced in the
destination databases by creating a new instance of
Access, opening the desired database with the
OpenCurrentDatabase method, then using the
DoCmd.DeleteObject method. The problem there is that
my "autoexec" macro in the destination database begins to
run, when I open that database programmatically. The
method described in the Microsoft Knowledge Base (article
nr. 147816) - with use of the SendKeys "+" statement to
simulate holding down the SHIFT key while opening the
database - is not functioning by me.
Has anyone any idea, how can I resolve these problems?
Thanks for any response.
Karcsi
patching mdb-s to my clients. I transport objects (forms,
reports etc.) in an .mdb that (when opened) should
replace the old objects in (or copy new objects to) the
clients' databases. I tried to uses the DoCmd.CopyObject
and DoCmd.TransferDatabase methods to perform the
replacements, but both methods do generate error when the
transported object exists in the destination database
too, then Access shuts down.
I tried then to delete first through automation
existing objects that should be replaced in the
destination databases by creating a new instance of
Access, opening the desired database with the
OpenCurrentDatabase method, then using the
DoCmd.DeleteObject method. The problem there is that
my "autoexec" macro in the destination database begins to
run, when I open that database programmatically. The
method described in the Microsoft Knowledge Base (article
nr. 147816) - with use of the SendKeys "+" statement to
simulate holding down the SHIFT key while opening the
database - is not functioning by me.
Has anyone any idea, how can I resolve these problems?
Thanks for any response.
Karcsi