You receive a "User-defined type not defined" error message when you compile or run VBA code in Acce
Explains that you cannot compile or run your VBA code if you are referring to an object in an object library that you do not have referenced. You must add a reference to the object library that contains the object that you are using in code....