General information
Category:
Forms & Form designer
>>The form appears, the caption is set, but no table is loaded. It looks to me as if the DataEnvironment's init method executes before the form's so the tablename property hasn't been initialized yet.
>
>This is firing order of events:
>
>DE BeforeOpenTables
>Form Load
>Cursor Init
>DE Init
>Control Init
>Form Init
>....
>If want your controls assigned the proper controlsource you should open tables a long before Form Init event - the best place is Load.
Thanks for your suggestion. Sorry for the delay in replying - I've just come back to this problem.
In debug I can see what you say is so - that the controlsource's have already been assigned by the time I get to the Form Init event.
But, since it's the Form Init event that receives the parameter from the menu indicating the table for the form to use, how can I know which table to open when in the Form Load?
Perplexed
Martyn
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only