Compile Error

majhl

Registered User.
Local time
Today, 05:56
Joined
Mar 4, 2008
Messages
89
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.
 
and what about the txtKCD?

Without seeing the actual form in the database not much I can do but guess at the other other control
 
and what about the txtKCD?

Without seeing the actual form in the database not much I can do but guess at the other other control

Of course! It was the other control that was missing. :banghead:

Thanks very much!
 

Users who are viewing this thread

Back
Top Bottom