D
dfingas
Hi,
I have a complex form whose recordsource is an extremely slow query.
In order to speed up the loading, I set the recordsource of the form
and comboboxes on load, and 'empty' them in the unload event (set to a
zero-length string) as per the recommendation on Tony Toews' website
at http://www.granite.ab.ca/access/performanceforms.htm
This speeds things up when it works, but often it doesn't actually
clear these values. The unload and close events are firing (i.e. not
a simple case of corruption), and I've tried putting code like
Me.RecordSource = ""
Me.areaCombo.RowSource = ""
in both of those events, but when I subsequently look at the form in
design view, the recordsource and rowsources are still populated.
It does work sometimes, and particularly when I break on the unload
event.
Any ideas what I'm missing?
Thanks,
Daniel
I have a complex form whose recordsource is an extremely slow query.
In order to speed up the loading, I set the recordsource of the form
and comboboxes on load, and 'empty' them in the unload event (set to a
zero-length string) as per the recommendation on Tony Toews' website
at http://www.granite.ab.ca/access/performanceforms.htm
This speeds things up when it works, but often it doesn't actually
clear these values. The unload and close events are firing (i.e. not
a simple case of corruption), and I've tried putting code like
Me.RecordSource = ""
Me.areaCombo.RowSource = ""
in both of those events, but when I subsequently look at the form in
design view, the recordsource and rowsources are still populated.
It does work sometimes, and particularly when I break on the unload
event.
Any ideas what I'm missing?
Thanks,
Daniel