>Hi All,
>
>When I open my main form all the controls are bound to a cursor that is created in a procedure that is called in the init of the form. I am getting an error saying that the controls are being unbound. I checked, and the procedure that will create the cursor is not yet being called. In all the other programs I've done this way the controls seen to wait till that procedure is called. This is a
>program that I inherited that was still in development. I can't seem to find what they had done to cause the controls to react before the FORM.init completes. I connect to the database in the FORM.init. And the procedure use SPT to retrieve the data into the cursor. Any idea what the differance is?
>
>TIA
>MIKE
Open your tables/cursors in Form.Load().
Explanation: Form.Load() is executed
before the objects contained on the form are initialized; Init(), afterwards.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)