DAO is commonly needed, but it depends on what code you have.
Also, you may not need ADO and OLE Automation, depending on what code you
are using.
Choose Compile on the Debug menu (in the code window) to verify it all
compiles okay.
Hopefully the trust center settings got your code going.