G
Guest
Hi everyone,
I have an Excel 97 sheet that lists the paths to no less than 25000 Access
97 databases. For every one of them I have to display the number of tables,
reports, forms and queries in subsequent cells on the sheet.
I am able to access the databases with code in the Excel workbook like:
' init
lngRij = 1
While Worksheets("Sheet1").Cells(lngRij, 2).Value <> ""
strMdbPad = Worksheets("Sheet1").Cells(lngRij, 2).Value
Set objAc = GetObject(strMdbPad)
Debug.Print objAc.CurrentDb.TableDefs(0).Name ' just checking...
Set objAc = Nothing
lngRij = lngRij + 1
Wend
But.
When I open a database with startup code, this code runs. Is there a way to
avoid this?
And.
How can I get the desired information from password protected databases or
databases that require a login?
Many thanks,
Cooz
I have an Excel 97 sheet that lists the paths to no less than 25000 Access
97 databases. For every one of them I have to display the number of tables,
reports, forms and queries in subsequent cells on the sheet.
I am able to access the databases with code in the Excel workbook like:
' init
lngRij = 1
While Worksheets("Sheet1").Cells(lngRij, 2).Value <> ""
strMdbPad = Worksheets("Sheet1").Cells(lngRij, 2).Value
Set objAc = GetObject(strMdbPad)
Debug.Print objAc.CurrentDb.TableDefs(0).Name ' just checking...
Set objAc = Nothing
lngRij = lngRij + 1
Wend
But.
When I open a database with startup code, this code runs. Is there a way to
avoid this?
And.
How can I get the desired information from password protected databases or
databases that require a login?
Many thanks,
Cooz