Skip to content
Advertisement

Undefined variable at ‘Incdntno.Value’

I am having trouble getting this to compile, it keeps giving an undefined variable error during compile at ‘Incdntno.Value’. I tried to Dim Incdntno as Integer but then was getting Invalid qualifier. I have a similar code that works (see second code block). I didn’t need a lot of what was going in the working code part so I removed it. I would be so grateful if someone can point out where I am going wrong in the first code block? Thank you, very much

Code that works:

Advertisement

Answer

This sounds like what happens if you duplicate event code. Take a close look at your control names and make sure they match. Also, you’ll want to make sure that [Event Procedure] appears in the event properties. That link may not appear automatically if you change control names.

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement