The easiest way is to use the Microsoft SQL-DMO COM objects. The object from that library you want to look at is SQLServer which contains a method called 'AttachDB'. It takes a multistring value to grab both the .mdb/.ldb files. Should give you just what you want.
_________________________
Stevie