Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compiler Error: User-defined type not defined 1

Status
Not open for further replies.

mearmortal

Programmer
May 1, 2002
79
GB
Using the following code in Chaper 9 page730 of the Access 2000 developers handbook Volume 1 Desktop Edition I get the above error message on running a report.
The VB Debugger stops on this code: -

DIM rst As ADODB.Recordset

I think I'm missing something but having trouble idetifying what it is? I beleive I havn't set up a recordset but I'm not sure.
 
Hi!

In the VBA environment, go to Tools | References

The "Microsoft ActiveX Data Objects Library 2.1" or something similar should be checked.

Debug | Compile

HTH Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top