It's something wrong in your source code.
If you had opened all libraries for ActiveX, ADODB, Jet, and maybe DataGrid or FlexGrid, you shouldn't have any problems.
Other problems would be that you have not specified the right name and/or properties of your object, that can be the command...