I have an unbound field on a form. In the onClick event I have code to populate a text field. I first setFocus to it and enable it. Both of these actions work. But when my code reaches the the line whete I set the textfieldname.t ext to a value, I get an error: You can`t reference a property or method unless the control has focus.
My code is:
The error occurs on the last line.
My code is:
Code:
txtFileName.Enabled = True txtFileName.Visible = True txtFileName.SetFocus txtFileName.Text = "some value"
Comment