I would say the original code did not connect to the database because you did not provide the full path to the database. In your second script you're now providing the full path, "ActinicCatalog.mdb" versus "@scriptdir\ActinicCatalog.mdb".

You should give the DBCommand() UDF a try.
_________________________
There are two types of vessels, submarines and targets.