-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
It should appear in the Debug window (Ctrl-G). If you have a lot of
tables, some of the info will "disappear," since the Debug window can't
hold a lot of data. In that case you may wish to redirect the output to
a text file.
Here is another version of the same code, but using the For Each...Next
syntax, which is easier to read.
Public Sub tablesProperties()
On Error Resume Next
Dim t As dao.TableDef, f As dao.field, p As dao.Property
For Each t In CurrentDb.TableDefs
Debug.Print "Properties for table "; t.Name; ":"
For Each f In t.Fields
Debug.Print " Field: "; f.Name
For Each p In f.Properties
Debug.Print " "; p.Name; ": ";
Debug.Print p.value;
If Err.Number Then Err.Clear: Debug.Print "(n/a)";
Debug.Print
Next p
Next f
Debug.Print
Next t
End Sub
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQj44jIechKqOuFEgEQKkbgCcC+U6VBrUXuXuQYYiahRcgZ +eA6oAoPD2
LGEQStWQU4uyovBHl05vEWeB
=QT0p
-----END PGP SIGNATURE-----
chanchito wrote:
thanks, i got the code to look right (i.e- no red lines showing up
anywhere), but is there stuff that i should be creating on my end of
things for this data to go into? When I run the code the hourglass
shows that something is running, but there is no output. Nothing
prints.