You might not call Refresh in the Form's Init, but I do all the time, since I frequently have controls that need to be conditioned based on the parameters passed in the Init's parameters.
>>Hi,
>>
>>I can't seem to figure out why I am having this problem error.
>>
>>I have a control based on a combo class. This control is used in two places on the form. In one place this control has ControlSource and in another the ControlSource is empty.
>>
>>The RowSourceType is Field. And the RowSource is "V_CURSOR.DESC_FLD, PK_FLD" The cursor V_CURSOR exists.
>>
>>The error I get on the line THISFORM.REFRESH() in the INIT method of the form. The error says "Cannot access the selected table V_CURSOR.DESC_FLD, PK_FLD" I think it has something to do with the form BindControls property.
>>What happens is that when these two controls are instantiated, the value of BindControls is .F. Then - after all controls are instantiated - the code sets the BindControls to .T. And then the Refresh() is called. I think .Refresh() actually "fires" the binding. But what I find strange is that problem is with the control that is not bound (has no value in ControlSource property) and not the other.
>>
>>What am I missing?
>
>I never call refresh from the Init.
Jim Nelson
Newbury Park, CA