list columns

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

How I list columns in access, In ORACLE I use desc table
what syntax I use in access to see all my columns in the
table

thanks
 
Tony said:
How I list columns in access, In ORACLE I use desc table
what syntax I use in access to see all my columns in the
table

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Try:

Function testme()

Dim f As DAO.field
Dim db As DAO.Database
Set db = CurrentDb

For Each f In db.TableDefs("Table Name").Fields
Debug.Print f.Name
Next

End Function

Substitute your table's name for "Table Name."


MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQE+IM4echKqOuFEgEQIgOQCfTVJt5uvigdLtvoi+Pe6AsQgXTUwAnRba
hosYpxqK+0AP/g4eSAKMOZDB
=YYM7
-----END PGP SIGNATURE-----
 
Back
Top