Hi all,

Happy Chinese New Year, can anyone help me to solve the problem ?

Why the error appear when I compile the code as below.

vb Code:
  1. If Typeof Ctrl is DTPicker then
  2.        ...
  3.   End If

Error Message : Compile Error :
A module is not a valid type


Why this error appear and how to solve it ?

Thanks for help :-)