Broken reference?

C

CDM

I'm getting an error messsage "Method or data member not found" on a piece of
code that has worked fine for months.
Dim oCustomer as New Customer
If oCustomer.load(mCustomer_Id) Then...

Customer is a class module and "Load" is a method of the class that
retrieves a record from tblCustomers. I don't understand why ".Load" is
causing an error when it has worked without a hitch up until today. Is this a
broken library reference issue?
 
V

vanderghast

If under VBE (Ctrl_G) you use the Browser (F2), can you find something
relevant about: Customer ?

If not, then you are missing a reference to the library defining the class
Customer.

If the Browser find the class, and the method Load, then maybe (probably)
the error is due to something else.



Vanderghast, Access MVP
 
C

CDM

Thanks for that. I browsed and found the class Customer and the method Load.
Any idea what the "something else" might be?
 
V

vanderghast

It is maybe a line of code (step by step would give more details) of the
method Load which lead to the error.

Vanderghast, Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top