Hi,

I have a VB6 form with the following

Textbox (Text1)
Microsoft Script Control v1.0 (scCTRL)
command1 button


The command button has the code

Private Sub Command1_Click()
FldName = "Text1"
scCTRL.ExecuteStatement FldName & ".Enabled = False"
End Sub


When it runs I get the following error

Object Required : 'Text1'

Any ideas ??

Regards
Karl.