Hello, I have just inherited a very undocumented legacy database,
developed in and still running on Access 97. The file is an MDB file,
with no security. It is placed in a shared directory on a dedicated
server, but it is usually accessed only by 1 user; the development
copy I use is not accessed by anyone else).
I am going through the database and fixing logic errors and attempting
to optimize the efficiency of the code. I am finding that one of my
forms is taking an awefully long time when loading in View Mode
(almost 30 seconds). I have traced the code and a major delay seems
to be happening between the loading of a subform and the main form.
To be more precise, I have 2 subforms on the first page of the main
form. I placed MsgBox statements in each of their Load and Open
events. Strangely enough, a significant pause occurs between
Subform2_Load and Form_Open. Does anyone know what could be happening
here? A Break-and-Step-Through reveals no VBA code being executed
between the events. The table records (as I understand it) are
accessed between the Open and Load events of a form... so I have no
idea what could be tying up the processor.
Any suggestions or comments would be immensely welcome! Thank you in
advance!
Alan
developed in and still running on Access 97. The file is an MDB file,
with no security. It is placed in a shared directory on a dedicated
server, but it is usually accessed only by 1 user; the development
copy I use is not accessed by anyone else).
I am going through the database and fixing logic errors and attempting
to optimize the efficiency of the code. I am finding that one of my
forms is taking an awefully long time when loading in View Mode
(almost 30 seconds). I have traced the code and a major delay seems
to be happening between the loading of a subform and the main form.
To be more precise, I have 2 subforms on the first page of the main
form. I placed MsgBox statements in each of their Load and Open
events. Strangely enough, a significant pause occurs between
Subform2_Load and Form_Open. Does anyone know what could be happening
here? A Break-and-Step-Through reveals no VBA code being executed
between the events. The table records (as I understand it) are
accessed between the Open and Load events of a form... so I have no
idea what could be tying up the processor.
Any suggestions or comments would be immensely welcome! Thank you in
advance!
Alan
Comment