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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to get Field Name and Field Size for a Table

Status
Not open for further replies.

LyndonOHRC

Programmer
Sep 8, 2005
603
US
I'm using the following query to get the list of table names from a database:
Code:
SELECT Name
FROM MSysObjects
WHERE Type=1 AND Flags=0
Is there a way to run a query on one of these table names to get it's field names and their sizes?

Lyndon

---People Remember about 10% of what you say ---They never forget how you made them feel. Covey
 
Field information is not stored in system tables where you can easily get at it with a query/sql. You would need to use the Documenter or another utility or code to get this information.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top