Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem Enabling TextBox

Status
Not open for further replies.

Creeder

Programmer
Jul 5, 2000
110
MY
Hi All,

I am having problem re-enabling the textbox after manually assigning the controlsource.

In my Init() of the form :

THIS.txtBox1.ControlSource = lrTest.value1

And I have a command button on the form which basically does:

THISFORM.txtBox1.Enabled = .T.

However Clicking the command button will not enabled the textbox, but when i remove the code from the INIT() method of the form, things seem to be working well. I have tried refreshing both the form and the textbox but it did not help.

I have to assign the controlsource manually due to some design issues instead of typing the lrTest.Value in the ControlSOurce property.

Thanks in advance.


Yue Jeen
 
The only thought that comes to mind: is lrTest.value1 read-only?

Does lrTest.value1 exist when the form Init fires?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top