sanders720
Programmer
This just seems sop simple. I have one line of code when I click on a combo box. This is supposed to place a value of "1" in a corresponding textbox.
It looks like this...
me.txtITJobNo.Text="1"
and produces this error...
Runtime Error 2185 - You can't reference a property or method unless the control has the focus.
So...Just for fun, I added a setfocus to the textbox prior to trying to change the textbox, which looks like this...
me.txtITJobNo.SetFocus
me.txtITJobNo.Text="1"
which produces this error...
Runtime Error 2115 - The Macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Access from saving the data in the field.
I don't follow. There is no BeforeUpdate code for either the combo box or the text box, and I don't know what is meant by ValidationRule.
Any thoughts, and thanks in advance...
It looks like this...
me.txtITJobNo.Text="1"
and produces this error...
Runtime Error 2185 - You can't reference a property or method unless the control has the focus.
So...Just for fun, I added a setfocus to the textbox prior to trying to change the textbox, which looks like this...
me.txtITJobNo.SetFocus
me.txtITJobNo.Text="1"
which produces this error...
Runtime Error 2115 - The Macro or function set to the BeforeUpdate or ValidationRule property for this field is preventing Microsoft Access from saving the data in the field.
I don't follow. There is no BeforeUpdate code for either the combo box or the text box, and I don't know what is meant by ValidationRule.
Any thoughts, and thanks in advance...