
DAO questions... DBEngine vs Workspace vs Database
As far as the DBEngine and worskpace objects go the explanation is
fairly simple. DBengine represents the Jet Database engine installed
on your machine. There is only one of these, and it is at the top of
the DAO object hierarchy. It contains (among other things) a
collection of workspaces. A workspace represents one session. For
instance, all transactions (begintrans, committrans, rollback) occur
at the workspace level, as do all username/password verifications. All
databases are opened up within a workspace; when executing a
OpenDatabase against the dbengine object one is actually performing
an opendatabase against the default workspace.
I'm unfamiliar with the OpenDatabase(dbname) syntax. Perhaps this is
archaic? I'd imagine that this would also open a database into the
default workspace. You could check this by trying to reference your
database through the default workspace( Dbengine.workspaces(0) )
-EHJ