Meaning of error message (in English - Microsoft-ese

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have forms with command buttons that produce forms to be printed and which
automatically fill in certain fields. There are about 5 or so which have
worked for 5 years or more. I created a new form using the same fields that
are in the other forms. I put a new command button on the controlling form
but when I execute it,
I get an error message saying COMPILE ERROR and it hangs up on a line in
the code which reads Me.lnam = vlnam. (this particular line is in other
forms and
they all refer to the same set of data.0 Further it says Method or data
member not found.
 
What do lnam and vlnam refer to? The error message seems to indicate that one
of those two fields/controls/variables is not defined on the form. You can
get to the error by compiling your code before you try the button click.

Barry
 
Surely it said more than just "Compile Error": it usually gives you an
indication of WHAT the Compile Error is.
 
lnam is just what I call the last name in my table. vlnam is in the GLBL
Macro.
(Someone set this up for me so I don't really understand it well.) All the
other
forms that work, use lnam (among other fields). I created the new form and
used
lnam in a unbound field - just like in the other forms.

Dot
 
It says Compile Error and Method or data member not found.

I have done a one-to-one comparison of the code for each of the subroutines
that produce the working forms and the new form. As far as I can tell, they
are the same.

Dot
 
The most likely cause of the error is that lnam doesn't actually exist on
your form: that it's spelled differently.
 
Back
Top