Method or Data Member Not found - how do I add?

M

MacNut2004

Morning,

Me.lboNumColumns is not being found within my VBA code. How do I go about
adding this ??

Thank you,
MN
 
D

Douglas J Steele

That code is expecting a control on the form named lboNumColumns, or a field
in the underlying RecordSource with that name.
 
M

MacNut2004

It says method or data member not found though? Isn't that a method that
needs to be added or something?
 
D

Douglas J Steele

Using Me., you can refer to Methods or to Properties. When you try to refer
to something that doesn't exist, Access has no way of knowing which you're
trying to refer to.

The reason I'm assuming a control (likely a list box) is what's missing from
your form is because the "lbo" prefix is commonly used to indicate list
boxes.
 
Top