I am particularily new to VB and am studying from Master Moore. However, whenever I tried the database example that use the :
Dim DB as Database
or any other objects like this, I always get the following error code:

Compile Error :
User-defined type not defined.

and DB as Database is highlighted.


What cause this and HOW can I correct it so that I can get beyond this point?

Thanks