Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query,Field,Table, Lists Function

Status
Not open for further replies.

bblekfeld

Programmer
Mar 9, 2004
49
US
Can I get a list of queries, fields, table, etc from Access without running that report. Meaning, is there a function that returns a list of queries fields, tables etc?


The report is too cumbersome and requires so much formatting, I just need a simple list.

Thanks!!
 
bblekfeld,

Have a look at these and you'll find more, I am sure...
Code:
Sub testt()
   With CurrentDb
      For Each td In .TableDefs
         MsgBox td.Name
         For Each fl In td.Fields
            MsgBox fl.Name
         Next
      Next
      For Each qd In .QueryDefs
         MsgBox qd.Name
      Next
   End With
End Sub
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top