W
Winfried
Hi,
I use Windows XP SP2 with Office 2003 SP2. I just wanted to get a list
of all queries I use in my MDB-file in order to use it in an Excel file
for documenation purposes.
The command I used was the following
Sub SHOW_QUERIES()
Dim catalog As New ADOX.catalog
Dim tb As ADOX.Table
catalog.ActiveConnection = Application.CurrentProject.Connection
For Each tb In catalog.Tables
If tb.Type = "VIEW" Then
Debug.Print tb.Name
End If
Next tb
End Sub
I was very astonished that I got not all queries. I found out that I
got only those queries which name has a lenght of 50 or less
characters.
Has anyone of you an idea why this happen or another idea how I get a
complete list?
Regards,
Winfried
I use Windows XP SP2 with Office 2003 SP2. I just wanted to get a list
of all queries I use in my MDB-file in order to use it in an Excel file
for documenation purposes.
The command I used was the following
Sub SHOW_QUERIES()
Dim catalog As New ADOX.catalog
Dim tb As ADOX.Table
catalog.ActiveConnection = Application.CurrentProject.Connection
For Each tb In catalog.Tables
If tb.Type = "VIEW" Then
Debug.Print tb.Name
End If
Next tb
End Sub
I was very astonished that I got not all queries. I found out that I
got only those queries which name has a lenght of 50 or less
characters.
Has anyone of you an idea why this happen or another idea how I get a
complete list?
Regards,
Winfried