I am tryng to print the table information:
Table name
And for each column ("x" represents the index of the column):
Column name: CurrentDb.TableDefs(tableName).Fields(x).Name
column type: CurrentDb.TableDefs(tableName).Fields(x).Type
column length: CurrentDb.TableDefs(tableName).Fields(x).Size
and
column description: CurrentDb.TableDefs(tableName).Fields(x).Properties("Description")
The problem is that I am getting an error when a column has not description.
Is there an implicit function to check if the "Description" property exists?
If not, I could create that function with a loop inside checking if any Property is "Description".
Now, if it possible to pass "CurrentDb.TableDefs(tableName).Fields(x)" as the first argument? What type would it be?
Table name
And for each column ("x" represents the index of the column):
Column name: CurrentDb.TableDefs(tableName).Fields(x).Name
column type: CurrentDb.TableDefs(tableName).Fields(x).Type
column length: CurrentDb.TableDefs(tableName).Fields(x).Size
and
column description: CurrentDb.TableDefs(tableName).Fields(x).Properties("Description")
The problem is that I am getting an error when a column has not description.
Is there an implicit function to check if the "Description" property exists?
If not, I could create that function with a loop inside checking if any Property is "Description".
Now, if it possible to pass "CurrentDb.TableDefs(tableName).Fields(x)" as the first argument? What type would it be?