I get a 'Method or data member not found' error message when trying to compile code. The code falls over when it gets to a particular control (txtKARY) at a line which reads:
If Me.txtKARY = "47,_ _,+21" Then Me.txtKCD = 0
I'm not sure what the problem is. I know there is a control called 'txtKARY' on the form as I can see it. If I type 'Me.', intellisense shows me 'txtKary' as one of the options I can choose from.
I've tried deleting the control and re-creating it with no success. I've also created a new form, stuck a textbox on it called 'txtKARY', written some code that refers to the control, and it works fine.
Anyone familiar with this issue? Is there a workaround?
TIA.
If Me.txtKARY = "47,_ _,+21" Then Me.txtKCD = 0
I'm not sure what the problem is. I know there is a control called 'txtKARY' on the form as I can see it. If I type 'Me.', intellisense shows me 'txtKary' as one of the options I can choose from.
I've tried deleting the control and re-creating it with no success. I've also created a new form, stuck a textbox on it called 'txtKARY', written some code that refers to the control, and it works fine.
Anyone familiar with this issue? Is there a workaround?
TIA.