Ma hai aggiunto i riferimenti all'oggetto?
(Project->Reference e flaggare "Microsoft Activex Data Object 2.1 Library")