Subject Re: [IBO] IBO/IB_Query PrepareSQL question - does it fire on formcreation? can I avoid that?
Author Salvatore Besso
hello Helen,

> Don't open datasets until you are ready to have them open.

what is in your opinion the best place to open the datasets?

1. Form creation (but it seems not to be...:-)
2. FormShow
3. ???

As a general behaviour, when I have a data-module associated with the
form, it is usually created before the form and in this case I open the
datasets in the data-module's OnCreate handler so when the form is
created the datasets are already open. If I don't have a data-module
(i.e. data components are on the form) I generally open datasets in the
OnCreate handler.

Cheers
Salvatore