You may need to set a reference to the Microsoft DAO library. Do this in a module by selecting Tools|References and checking the library. Your code should be changed to:
Dim qdf as DAO.QueryDef
Duane
MS Access MVP
Find out how to get great answers faq219-2884.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.