How to Get the Data Type of Columns in access

bassam albaqre 21 Reputation points
2021-10-18T23:07:52.65+00:00

I want a query that returns the column names and data type for each column in access

This is a code in Oracle, the same idea in Access How

select COLUMN_NAME, DATA_TYPE from user tab columns where table name=your table name

Microsoft 365 and Office Access Development
0 comments No comments
{count} votes

Accepted answer
  1. Gustav 717 Reputation points MVP
    2021-10-19T08:27:36.197+00:00

    In Access, you can't use SQL for that.
    Use DAO to open the table and read the data types of the fields looping the Fields collection of the table.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.