Hi!
Data environment is a separate object and it is initialized completely before the form Load method. For example, when form have private data session, new data session is already accessible and available for all functionality in the form Load event.
>Hi all,
>
>Why does placing a Requery of a view in the Form.Load event work?
>
>I have a form with a DE. In the DE are several tables and views, one view (large amount of data) has the NODATAONLOAD property set to True. In the Form.Load() I issue a REQUERY of the large view and data is loaded. What confuses me is that the cursor for the view has not Inited (at least as I understand event firing) the requery command. What have I missed?
>
>My understanding of event firing sequence is:
>
>DE.OpenTables
>DE.BeforeOpenTables
>Form.Load
>DE.Init
>Form.Init
>
>and so forth.
>
>The cursors are Inited between Form.Load and DE.Init.
>
>Thanks,
>
>Robert
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.