how do i get a text list of my tables, queries and reports?

  • Thread starter Leslie Porter OHV
  • Start date
L

Leslie Porter OHV

this is probly a simple thing... but ive did some searching and reading and
have yet to find this little tidbit. i have alot of tables, queries and stuff
in access 2003 and would like to get a text listing of them all to help in
sorting and renaming. so my question is...

how do i get a text list of my tables, queries and reports?

thank you for taking the time to read and/or respond to this.
 
S

scubadiver

This will give you a start

SELECT MSysObjects.Name FROM MSysObjects
ORDER BY MSysObjects.Name;
 
L

Leslie Porter OHV

nice....

but this seems to give me a list of everything including things im not even
sure what they are. is there a property assosiated with these that we could
also query that could help me sort all these? like if they are a query, for
or report??
 
L

Leslie Porter OHV

never mind... i got it...
add MSysObjects.Type and bingo..

thanks again
 
S

scubadiver

The 'type' field will give a numerical indicator.

SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=5) AND ((Left([name],1))<>"~"))
ORDER BY MSysObjects.Name;
 
C

Clif McIrvin

Leslie Porter OHV said:
this is probly a simple thing... but ive did some searching and
reading and
have yet to find this little tidbit. i have alot of tables, queries
and stuff
in access 2003 and would like to get a text listing of them all to
help in
sorting and renaming. so my question is...

how do i get a text list of my tables, queries and reports?

thank you for taking the time to read and/or respond to this.


Leslie, I started with Arvin Meyer's example Document Database sample
code and tweaked it to create a .txt list of every file it created (and
included code to ask if I wanted it to create all the files, or only the
list.)

http://www.accessmvp.com/Arvin/
 
L

Leslie Porter OHV

yea i see that but it wasnt hard to figure out... one thing i did find.. the
~sq_ must be some kind of error list. ~sq_f is forms ~sq_r is reports and so
on. that was kinda nice. i tarcked down some problems that i didnt even know
we had. =]

when i was first handed this database with my new job i was kinda freaked
out. hadnt messed with anything since access 97 along time ago. but its not
as bad as i was makin it out to be. plus this forum is AWSOME!! coulda used
it along time ago..

Thanks...

scubadiver said:
The 'type' field will give a numerical indicator.

SELECT MSysObjects.Name
FROM MSysObjects
WHERE (((MSysObjects.Type)=5) AND ((Left([name],1))<>"~"))
ORDER BY MSysObjects.Name;


Leslie Porter OHV said:
nice....

but this seems to give me a list of everything including things im not even
sure what they are. is there a property assosiated with these that we could
also query that could help me sort all these? like if they are a query, for
or report??
 
L

Leslie Porter OHV

WOW that looks cool. but im not sure where to load it or how to call it...

its a module right?
 
C

Clif McIrvin

Yup -- it's pretty cool and it is a procedure in a module.

I'm in A2003, not familiar with other versions.

From the main databse menu select Insert | Module which will open the
VBA editor in a new code module, then copy and paste Arvin's text into
the code window.

You can execute it directly from the code window, or you can create a
toolbar button to run it, or ... , or ... etc! <g>

The text file I generated (I don't recall what is my code and what is
Arvin's -- my code is pasted below) helps clarify the filenames:

it looks like ~sq are queries defined 'inside of' other definitions, as
opposed to saved queries:

~sqc - lookup queries defined in table field properties (I know, I need
to lose these, Sure can learn a lot in these newsgroups!)

~sqf - forms
~sqr - reports


at least, that's what it looks like to me. I ran the code, and modified
it to create the list of object file to see what it did and haven't been
back to learn what to do with it yet ... my app is still very much under
development.

HTH
--
Clif

Option Compare Database
Public Sub DocDatabase()
'====================================================================
' Name: DocDatabase
' Purpose: Documents the database to a series of text files
'
' Author: Arvin Meyer
' Date: June 02, 1999
' Comment: Uses the undocumented [Application.SaveAsText] syntax
' To reload use the syntax [Application.LoadFromText]
' Modified by Clif McIrvin 4/08 to create __NameList.txt
'====================================================================
On Error GoTo Err_DocDatabase
Dim dbs As Database
Dim cnt As Container
Dim doc As Document
Dim i As Integer
Const DocPath = "C:\Documents and Settings\LabPC\My Documents\QC
Files\Data\Development Notes\DB Documents\"
Dim ListOnly As Integer

Set dbs = CurrentDb() ' use CurrentDb() to refresh Collections

ListOnly = MsgBox("Generate List Only?", vbYesNo, _
"Arvin's Database Documentor")

Open DocPath & "__NameList.txt" For Output As #6
Print #6, "Arvin Meyers' Database Documentor", Now
Print #6, "Current Database: "; dbs.Name

Print #6, vbCrLf; "Container = Forms"
Set cnt = dbs.Containers("Forms")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acForm, doc.Name, DocPath & doc.Name & ".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Reports"
Set cnt = dbs.Containers("Reports")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Macros"
Set cnt = dbs.Containers("Scripts")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acMacro, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Modules"
Set cnt = dbs.Containers("Modules")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acModule, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Query Defs"
For i = 0 To dbs.QueryDefs.Count - 1
If ListOnly = vbNo Then
Application.SaveAsText acQuery, dbs.QueryDefs(i).Name, DocPath &
dbs.QueryDefs(i).Name & ".txt"
End If
Print #6, Tab(5); dbs.QueryDefs(i).Name
Next i

Print #6,
Print #6, "End of Database: "; dbs.Name
Close #6

Set doc = Nothing
Set cnt = Nothing
Set dbs = Nothing

Exit_DocDatabase:
Exit Sub


Err_DocDatabase:
Select Case Err

Case Else
MsgBox Err.Description
Resume Exit_DocDatabase
End Select

End Sub


Option Compare Database
Public Sub DocDatabase()
'====================================================================
' Name: DocDatabase
' Purpose: Documents the database to a series of text files
'
' Author: Arvin Meyer
' Date: June 02, 1999
' Comment: Uses the undocumented [Application.SaveAsText] syntax
' To reload use the syntax [Application.LoadFromText]
' Modified by Clif McIrvin 4/08 to create __NameList.txt
'====================================================================
On Error GoTo Err_DocDatabase
Dim dbs As Database
Dim cnt As Container
Dim doc As Document
Dim i As Integer
Const DocPath = "C:\Documents and Settings\LabPC\My Documents\QC
Files\Data\Development Notes\DB Documents\"
Dim ListOnly As Integer

Set dbs = CurrentDb() ' use CurrentDb() to refresh Collections

ListOnly = MsgBox("Generate List Only?", vbYesNo, _
"Arvin's Database Documentor")

Open DocPath & "__NameList.txt" For Output As #6
Print #6, "Arvin Meyers' Database Documentor", Now
Print #6, "Current Database: "; dbs.Name

Print #6, vbCrLf; "Container = Forms"
Set cnt = dbs.Containers("Forms")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acForm, doc.Name, DocPath & doc.Name & ".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Reports"
Set cnt = dbs.Containers("Reports")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Macros"
Set cnt = dbs.Containers("Scripts")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acMacro, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Modules"
Set cnt = dbs.Containers("Modules")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acModule, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Query Defs"
For i = 0 To dbs.QueryDefs.Count - 1
If ListOnly = vbNo Then
Application.SaveAsText acQuery, dbs.QueryDefs(i).Name, DocPath &
dbs.QueryDefs(i).Name & ".txt"
End If
Print #6, Tab(5); dbs.QueryDefs(i).Name
Next i

Print #6,
Print #6, "End of Database: "; dbs.Name
Close #6

Set doc = Nothing
Set cnt = Nothing
Set dbs = Nothing

Exit_DocDatabase:
Exit Sub


Err_DocDatabase:
Select Case Err

Case Else
MsgBox Err.Description
Resume Exit_DocDatabase
End Select

End Sub
 
L

Leslie Porter OHV

i dont see a table list? how would i add this? i tried this and it didnt
work...

Print #6, vbCrLf; "Container = Tables"
Set cnt = dbs.Containers("Tables")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name & ".txt"
End If
Print #6, Tab(5); doc.Name
Next doc



Clif McIrvin said:
Yup -- it's pretty cool and it is a procedure in a module.

I'm in A2003, not familiar with other versions.

From the main databse menu select Insert | Module which will open the
VBA editor in a new code module, then copy and paste Arvin's text into
the code window.

You can execute it directly from the code window, or you can create a
toolbar button to run it, or ... , or ... etc! <g>

The text file I generated (I don't recall what is my code and what is
Arvin's -- my code is pasted below) helps clarify the filenames:

it looks like ~sq are queries defined 'inside of' other definitions, as
opposed to saved queries:

~sqc - lookup queries defined in table field properties (I know, I need
to lose these, Sure can learn a lot in these newsgroups!)

~sqf - forms
~sqr - reports


at least, that's what it looks like to me. I ran the code, and modified
it to create the list of object file to see what it did and haven't been
back to learn what to do with it yet ... my app is still very much under
development.

HTH
--
Clif

Option Compare Database
Public Sub DocDatabase()
'====================================================================
' Name: DocDatabase
' Purpose: Documents the database to a series of text files
'
' Author: Arvin Meyer
' Date: June 02, 1999
' Comment: Uses the undocumented [Application.SaveAsText] syntax
' To reload use the syntax [Application.LoadFromText]
' Modified by Clif McIrvin 4/08 to create __NameList.txt
'====================================================================
On Error GoTo Err_DocDatabase
Dim dbs As Database
Dim cnt As Container
Dim doc As Document
Dim i As Integer
Const DocPath = "C:\Documents and Settings\LabPC\My Documents\QC
Files\Data\Development Notes\DB Documents\"
Dim ListOnly As Integer

Set dbs = CurrentDb() ' use CurrentDb() to refresh Collections

ListOnly = MsgBox("Generate List Only?", vbYesNo, _
"Arvin's Database Documentor")

Open DocPath & "__NameList.txt" For Output As #6
Print #6, "Arvin Meyers' Database Documentor", Now
Print #6, "Current Database: "; dbs.Name

Print #6, vbCrLf; "Container = Forms"
Set cnt = dbs.Containers("Forms")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acForm, doc.Name, DocPath & doc.Name & ".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Reports"
Set cnt = dbs.Containers("Reports")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Macros"
Set cnt = dbs.Containers("Scripts")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acMacro, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Modules"
Set cnt = dbs.Containers("Modules")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acModule, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Query Defs"
For i = 0 To dbs.QueryDefs.Count - 1
If ListOnly = vbNo Then
Application.SaveAsText acQuery, dbs.QueryDefs(i).Name, DocPath &
dbs.QueryDefs(i).Name & ".txt"
End If
Print #6, Tab(5); dbs.QueryDefs(i).Name
Next i

Print #6,
Print #6, "End of Database: "; dbs.Name
Close #6

Set doc = Nothing
Set cnt = Nothing
Set dbs = Nothing

Exit_DocDatabase:
Exit Sub


Err_DocDatabase:
Select Case Err

Case Else
MsgBox Err.Description
Resume Exit_DocDatabase
End Select

End Sub


Option Compare Database
Public Sub DocDatabase()
'====================================================================
' Name: DocDatabase
' Purpose: Documents the database to a series of text files
'
' Author: Arvin Meyer
' Date: June 02, 1999
' Comment: Uses the undocumented [Application.SaveAsText] syntax
' To reload use the syntax [Application.LoadFromText]
' Modified by Clif McIrvin 4/08 to create __NameList.txt
'====================================================================
On Error GoTo Err_DocDatabase
Dim dbs As Database
Dim cnt As Container
Dim doc As Document
Dim i As Integer
Const DocPath = "C:\Documents and Settings\LabPC\My Documents\QC
Files\Data\Development Notes\DB Documents\"
Dim ListOnly As Integer

Set dbs = CurrentDb() ' use CurrentDb() to refresh Collections

ListOnly = MsgBox("Generate List Only?", vbYesNo, _
"Arvin's Database Documentor")

Open DocPath & "__NameList.txt" For Output As #6
Print #6, "Arvin Meyers' Database Documentor", Now
Print #6, "Current Database: "; dbs.Name

Print #6, vbCrLf; "Container = Forms"
Set cnt = dbs.Containers("Forms")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acForm, doc.Name, DocPath & doc.Name & ".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Reports"
Set cnt = dbs.Containers("Reports")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Macros"
Set cnt = dbs.Containers("Scripts")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acMacro, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Modules"
Set cnt = dbs.Containers("Modules")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acModule, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Query Defs"
For i = 0 To dbs.QueryDefs.Count - 1
If ListOnly = vbNo Then
Application.SaveAsText acQuery, dbs.QueryDefs(i).Name, DocPath &
dbs.QueryDefs(i).Name & ".txt"
End If
Print #6, Tab(5); dbs.QueryDefs(i).Name
Next i

Print #6,
Print #6, "End of Database: "; dbs.Name
Close #6

Set doc = Nothing
Set cnt = Nothing
Set dbs = Nothing

Exit_DocDatabase:
Exit Sub


Err_DocDatabase:
Select Case Err

Case Else
MsgBox Err.Description
Resume Exit_DocDatabase
End Select

End Sub




Leslie Porter OHV said:
WOW that looks cool. but im not sure where to load it or how to call
it...

its a module right?
 
J

John W. Vinson

i dont see a table list? how would i add this? i tried this and it didnt
work...

Tools... Analyze... Documenter gives a (very, even overly) detailed
documentation of all objects in the database. Set the options for the report
to display only what you want to see - otherwise you'll go through reams of
paper.
 
L

Leslie Porter OHV

How blind can i be. neither report gives me exactly what i need but they are
definitly awsome tools and will get me where i want.
1st run of documenter was 2500 pages =]

Thanks guys
 
C

Clif McIrvin

Leslie Porter OHV said:
i dont see a table list? how would i add this? i tried this and it
didnt
work...

Leslie, I liked John's reply. :)

If you really want to dig into this, you could start by opening the
Access Help Table of Contents and drilling down to Microsoft DAO | DAO
Overview and from there See Also | Jet Workspace Object Model.

If you go there, remember that Arvin noted that Application.SaveAsText
is undocumented.


I'll also mention that I've seen other documentor utilities discussed in
these forums -- it shouldn't take too long searching Google Groups to
find several links to other resources.


--
Clif
Still learning Access 2003

Print #6, vbCrLf; "Container = Tables"
Set cnt = dbs.Containers("Tables")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc



Clif McIrvin said:
Yup -- it's pretty cool and it is a procedure in a module.

I'm in A2003, not familiar with other versions.

From the main databse menu select Insert | Module which will open the
VBA editor in a new code module, then copy and paste Arvin's text
into
the code window.

You can execute it directly from the code window, or you can create a
toolbar button to run it, or ... , or ... etc! <g>

The text file I generated (I don't recall what is my code and what is
Arvin's -- my code is pasted below) helps clarify the filenames:

it looks like ~sq are queries defined 'inside of' other definitions,
as
opposed to saved queries:

~sqc - lookup queries defined in table field properties (I know, I
need
to lose these, Sure can learn a lot in these newsgroups!)

~sqf - forms
~sqr - reports


at least, that's what it looks like to me. I ran the code, and
modified
it to create the list of object file to see what it did and haven't
been
back to learn what to do with it yet ... my app is still very much
under
development.

HTH
--
Clif

Option Compare Database
Public Sub DocDatabase()

'====================================================================
' Name: DocDatabase
' Purpose: Documents the database to a series of text files
'
' Author: Arvin Meyer
' Date: June 02, 1999
' Comment: Uses the undocumented [Application.SaveAsText] syntax
' To reload use the syntax [Application.LoadFromText]
' Modified by Clif McIrvin 4/08 to create __NameList.txt

'====================================================================
On Error GoTo Err_DocDatabase
Dim dbs As Database
Dim cnt As Container
Dim doc As Document
Dim i As Integer
Const DocPath = "C:\Documents and Settings\LabPC\My Documents\QC
Files\Data\Development Notes\DB Documents\"
Dim ListOnly As Integer

Set dbs = CurrentDb() ' use CurrentDb() to refresh Collections

ListOnly = MsgBox("Generate List Only?", vbYesNo, _
"Arvin's Database Documentor")

Open DocPath & "__NameList.txt" For Output As #6
Print #6, "Arvin Meyers' Database Documentor", Now
Print #6, "Current Database: "; dbs.Name

Print #6, vbCrLf; "Container = Forms"
Set cnt = dbs.Containers("Forms")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acForm, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Reports"
Set cnt = dbs.Containers("Reports")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Macros"
Set cnt = dbs.Containers("Scripts")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acMacro, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Modules"
Set cnt = dbs.Containers("Modules")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acModule, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Query Defs"
For i = 0 To dbs.QueryDefs.Count - 1
If ListOnly = vbNo Then
Application.SaveAsText acQuery, dbs.QueryDefs(i).Name, DocPath &
dbs.QueryDefs(i).Name & ".txt"
End If
Print #6, Tab(5); dbs.QueryDefs(i).Name
Next i

Print #6,
Print #6, "End of Database: "; dbs.Name
Close #6

Set doc = Nothing
Set cnt = Nothing
Set dbs = Nothing

Exit_DocDatabase:
Exit Sub


Err_DocDatabase:
Select Case Err

Case Else
MsgBox Err.Description
Resume Exit_DocDatabase
End Select

End Sub


Option Compare Database
Public Sub DocDatabase()

'====================================================================
' Name: DocDatabase
' Purpose: Documents the database to a series of text files
'
' Author: Arvin Meyer
' Date: June 02, 1999
' Comment: Uses the undocumented [Application.SaveAsText] syntax
' To reload use the syntax [Application.LoadFromText]
' Modified by Clif McIrvin 4/08 to create __NameList.txt

'====================================================================
On Error GoTo Err_DocDatabase
Dim dbs As Database
Dim cnt As Container
Dim doc As Document
Dim i As Integer
Const DocPath = "C:\Documents and Settings\LabPC\My Documents\QC
Files\Data\Development Notes\DB Documents\"
Dim ListOnly As Integer

Set dbs = CurrentDb() ' use CurrentDb() to refresh Collections

ListOnly = MsgBox("Generate List Only?", vbYesNo, _
"Arvin's Database Documentor")

Open DocPath & "__NameList.txt" For Output As #6
Print #6, "Arvin Meyers' Database Documentor", Now
Print #6, "Current Database: "; dbs.Name

Print #6, vbCrLf; "Container = Forms"
Set cnt = dbs.Containers("Forms")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acForm, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Reports"
Set cnt = dbs.Containers("Reports")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acReport, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Macros"
Set cnt = dbs.Containers("Scripts")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acMacro, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Modules"
Set cnt = dbs.Containers("Modules")
For Each doc In cnt.Documents
If ListOnly = vbNo Then
Application.SaveAsText acModule, doc.Name, DocPath & doc.Name &
".txt"
End If
Print #6, Tab(5); doc.Name
Next doc

Print #6, vbCrLf; "Container = Query Defs"
For i = 0 To dbs.QueryDefs.Count - 1
If ListOnly = vbNo Then
Application.SaveAsText acQuery, dbs.QueryDefs(i).Name, DocPath &
dbs.QueryDefs(i).Name & ".txt"
End If
Print #6, Tab(5); dbs.QueryDefs(i).Name
Next i

Print #6,
Print #6, "End of Database: "; dbs.Name
Close #6

Set doc = Nothing
Set cnt = Nothing
Set dbs = Nothing

Exit_DocDatabase:
Exit Sub


Err_DocDatabase:
Select Case Err

Case Else
MsgBox Err.Description
Resume Exit_DocDatabase
End Select

End Sub




in
message news:[email protected]...
WOW that looks cool. but im not sure where to load it or how to
call
it...

its a module right?

:

"Leslie Porter OHV" <[email protected]>
wrote
in
message this is probly a simple thing... but ive did some searching and
reading and
have yet to find this little tidbit. i have alot of tables,
queries
and stuff
in access 2003 and would like to get a text listing of them all
to
help in
sorting and renaming. so my question is...

how do i get a text list of my tables, queries and reports?

thank you for taking the time to read and/or respond to this.


Leslie, I started with Arvin Meyer's example Document Database
sample
code and tweaked it to create a .txt list of every file it created
(and
included code to ask if I wanted it to create all the files, or
only
the
list.)

http://www.accessmvp.com/Arvin/
 
J

John W. Vinson

How blind can i be. neither report gives me exactly what i need but they are
definitly awsome tools and will get me where i want.
1st run of documenter was 2500 pages =]

I think whoever programmed it owns a good bit of stock in Weyerhauser (or one
of the other paper companies)... <g>

Setting the Options to (e.g.) list fieldnames only, omitting the field
properties; suppress the indexes and relationships; etc. gives you a very
decent overview. If you need to see more data you can do it selectively on
just the tables or other objects that you need.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top