>Hi Guys,
>
>Just a little question, if I insert a sql statement in the init of a form, does foxpro automatically match the field in the cursor with the textbox's equivalent name like how report does its job?
>
>Thanx
>Tom
No You have to set Textboxe's CONTROLSOURCE property to 'cursor.field'.
i.e.
use MyCursor
thisform.txtcField.CONTROLSOURCE = "MyCursor.cField"
HTH
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]