sounds like you must have a module with the name DTPicker as well
i tested that it will definitley give that error

try this instead
vb Code:
  1. If TypeName(ctl) = "DTPicker" Then 'do stuff