T
Ted
I have database with 10 tables, the main one of which has 80 fields and
13000 records. There is a main form which shows data from the central table
and has about 20 calculated text boxes, some of whcih rely on quite complex
vba functions to calculate.
On a stand-alone this all works very quickly. But it needs to be deployed on
a network (I have split the data tables from the code) and it is incredilbly
slow. The problem seems to be the way I have designed a particular form and
hence I have two questions:
1. The form updates completely with the OnCurrent event.This means that a
tab control which is not seen when the form loads but takes a long time to
calculate mst calculate whenever the form opens. Can this calculation be
moved to another event so it is only calculated when required? I can'tt work
out which event to use.
2. If there is a found set with, say, 20 records whcih the user may need to
scroll through the form seems to work its way though all 20 records before
displaying the one required. This is a result of a WHERE caluse returning
the found set which meets the user's requirements and then a FIND FIRST
action which picks the one from the existing found set. Why doesn't it just
go to the record required without caluclating the others?
Clearly I am missing some basic understanding about events but my reading of
books, the help files and this newsgroup haven't shone the light. Yet.
Thanks in advance
Ted
13000 records. There is a main form which shows data from the central table
and has about 20 calculated text boxes, some of whcih rely on quite complex
vba functions to calculate.
On a stand-alone this all works very quickly. But it needs to be deployed on
a network (I have split the data tables from the code) and it is incredilbly
slow. The problem seems to be the way I have designed a particular form and
hence I have two questions:
1. The form updates completely with the OnCurrent event.This means that a
tab control which is not seen when the form loads but takes a long time to
calculate mst calculate whenever the form opens. Can this calculation be
moved to another event so it is only calculated when required? I can'tt work
out which event to use.
2. If there is a found set with, say, 20 records whcih the user may need to
scroll through the form seems to work its way though all 20 records before
displaying the one required. This is a result of a WHERE caluse returning
the found set which meets the user's requirements and then a FIND FIRST
action which picks the one from the existing found set. Why doesn't it just
go to the record required without caluclating the others?
Clearly I am missing some basic understanding about events but my reading of
books, the help files and this newsgroup haven't shone the light. Yet.
Thanks in advance
Ted