Did you add reference to Microsoft ActiveX Data Object 2.x?