XL2000: You Receive "User-Defined Type Not Defined" Error Message When Using Data Access Objects (213353)
The information in this article applies to:
This article was previously published under Q213353 SYMPTOMS
When you run a Microsoft Visual Basic for Applications subroutine
using data access objects (DAOs), you may receive one of the following
compile error messages:
User-Defined Type Not Defined
Sub or Function Not Defined
CAUSE
You may receive the error message when a subroutine contains code
that uses the Microsoft DAO Object Library, and the library is not
referenced.
RESOLUTION
To avoid the error message, follow these steps:
- In the Visual Basic Editor, click References on the Tools menu.
- In the References dialog box, under Available References, select Microsoft DAO 3.5 Object Library, and then click OK.
If Microsoft DAO 3.5 Object Library is not listed in the list box under Available References, click Browse, and then navigate to the Dao350.dll file. It should be found in the following location:
\Program Files\Common Files\Microsoft Shared\Dao\Dao350.dll
Select the file, and then click OK. This returns you to the References dialog box. Click OK.
Modification Type: | Minor | Last Reviewed: | 10/11/2006 |
---|
Keywords: | kberrmsg kbprb kbProgramming KB213353 |
---|
|