getting at datatypes inside access

  • Thread starter Thread starter William Kossack
  • Start date Start date
W

William Kossack

Is it possible to get the data types for fields in ms access tables?

I'm trying to do this either with a query or through odbc
 
You can use

Currentdb.TableDefs("MyTable").Fields("MyField").Type

This will return one of DAO.DataTypeEnum values

HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top