To go with what Dirk said, Access 2007 has DAO set as the default now and not
ADO, so if you want to use ADO code you will need to set the reference for
each new database you create in 2007. Just something to remember.
--
Bob Larson
Access World Forums Administrator