I have some code that tells me the table and the field names of a linked table. However, using debug.print only puts the information in my immediate window.
How can I have this go to a different table?
Here is the code:
Dim db As Database
Dim tbl As TableDef
Dim Fld As Field
Set db = CurrentDb
For Each tbl In db.TableDefs
debug.print "Table: " & tbl.name & "***"
For Each Fld In tbl.Fields
debug.print fld.name
next fld
next tbl
I have tried writing a sql that would pass the values back to a table, but that didnt' work.
Any ideas would be greatful!!
Thanks
How can I have this go to a different table?
Here is the code:
Dim db As Database
Dim tbl As TableDef
Dim Fld As Field
Set db = CurrentDb
For Each tbl In db.TableDefs
debug.print "Table: " & tbl.name & "***"
For Each Fld In tbl.Fields
debug.print fld.name
next fld
next tbl
I have tried writing a sql that would pass the values back to a table, but that didnt' work.
Any ideas would be greatful!!
Thanks