undefined type

richard luft

Registered User.
Local time
Yesterday, 23:29
Joined
Jun 4, 2004
Messages
63
Hi:
I'm trying to convert some Ac2 code to VBA for Ac2k. I have the following globals defined in a module for an "outline" type of form, as follows:
>>>>>>>
Option Compare Database
Option Explicit

Dim Tree As ListType

Dim MappeTable As DAO.Recordset
Dim MappeTableClone As DAO.Recordset
Dim MappeTableInit As Integer
>>>>>>
When I compile, the line Dim TREE as ListType gets errmsg of "User-defined type not defined. I can't find 'listtype' defined in Ac2 or in Ac2k. Can anyone suggest what's wrong, and a solution.
Thanx, Richard
 
Last edited:
In the module, goto Tools -> References and check the reference to MS DAO
 
No, the DAO reference is installed already.
 

Users who are viewing this thread

Back
Top Bottom