
VB4: Dim db as Database error in Class module
Quote:
> When run a simple OLE Server app in VB4 EE, I get an error wherever
> I declare a Database variable.
> Eg.
> Dim db as Database
> Error: User Defined Type not allowed
> This also happens for Recordset declarations.
> I've tried declaring them Global in a separate code module, ie
> outside the Class modules, but that didn't help.
> When I create an ordinary project, ie not an OLE server,
> I don't have the problem. Any ideas?
I haven't actually experienced this problem myself, but have you
double checked that the appropriate DAO is checked in the
References list???
--
Karl Costenbader, President
Competent Consulting
Sacramento, CA
Home Page: http://www.competent.com