"Dim qdftemp as QueryDef" gives me rrror Message...

K

Koorosh

Hi

I wrote a function in and in it, the statement "Dim qdftemp as QueryDef"
gives me a compiler error of "Compiler error: user-defined type not defined".

What gives? I have used this statement before in other databases and it has
worked.
 
R

RoyVidar

Koorosh said:
Hi

I wrote a function in and in it, the statement "Dim qdftemp as QueryDef"
gives me a compiler error of "Compiler error: user-defined type not defined".

What gives? I have used this statement before in other databases and it has
worked.

Ensure you have a reference to DAO. In VBE - Tools | References.
Microsoft DAO 3.6 Object Library
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top