I have a database with an autoexec macro opening a form called Frm1. In the OnOpen event of the form i have another function which simplified, transfers the data to a given database , say
DoCmd.TransferDatabase acExport, “Microsoft Access”, “C:beBerlin.mdb”, acModule, “MdlDepot”, “MdlDepot”
ALl i want is that on opening the database, to export the module “MdlDepot” to a given database,called Berling.mdb.But i cannot do it. It is the autoexec macro the creates my problems. Otherwise, on opening the form itself the command is executed and the module is transferred. So the problems lies with the macro autoexec. But i want to transfer the data not by opening the form,.but by an autoexec macro. Actually this is the sole purpose of my database, and i am sending it through Internet to my other end users.I didnt know that the autoexec macro will create such troubles for me. I have tried at first to put the TransferDatabase code in the autoexec code itself, but again id didnt work.
Did anybody come across a similar situation?
Can somebody help me? I will be extremely grateful