KrazyKT,
The following is VERY rough. It not just can be - it
is hazzardous. It is intended ONLY as something to kick start the mental process.
Public Function MultiMDB_Open()
Dim Wks As Workspace
Dim Dbs As Database
Dim DbNew As Database
Dim rst1 As Recordset
Dim rst2 As Recordset
Dim rst3 As Recordset
Dim rst4 As Recordset
Dim rst5 As Recordset
Dim MyMDB As String
Dim MyPath As String
Set Wks = DBEngine.Workspaces(0)
Set Dbs = CurrentDb
MyPath = "C:\My Documents\"
MyMDB = Dir(MyPath & "*.MDB"
While MyMDB <> ""
Set DbNew = Wks.OpenDatabase(MyMDB) 'parameters may be required here
Set rst1 = dvnew.OpenRecordset("
tablename1", dbOpenDynaset)
Set rst2 = dvnew.OpenRecordset("
tablename2", dbOpenDynaset)
Set rst3 = dvnew.OpenRecordset("
tablename3", dbOpenDynaset)
Set rst4 = dvnew.OpenRecordset("
tablename4", dbOpenDynaset)
Set rst5 = dvnew.OpenRecordset("
tablename5", dbOpenDynaset)
'Do the specific processing for the single database here
'Set 'foregin db objects to nothing, so they may be re-used
Set rst1 = Nothing
Set rst2 = Nothing
Set rst3 = Nothing
Set rst4 = Nothing
Set rst5 = Nothing
Set DbNew = Nothing
MyDb = Dir
End Function
[sig]<p>MichaelRed<br><a href=mailto:mred@duvallgroup.com>mred@duvallgroup.com</a><br>There is never time to do it right but there is always time to do it over[/sig]