I have a little bit of code to extract the name and description of each variable in the table I name and results are written into a temporary table (tblTemp). I would also like to extract the data type of each variable, but am stuck as to the VBA designation of this property. Can anyone help?
Thanks.
<Code>
Dim dbs As Database
Dim tdf As DAO.TableDef
Dim fld As DAO.Field
Dim rst As DAO.Recordset
Dim intX As Integer
Set dbs = CurrentDb()
Set tdf = dbs.TableDefs("TableName")
Set rst = dbs.OpenRecordset("tblTemp")
For intX = 0 To 300
Set fld = tdf.Fields(intX)
rst.AddNew
rst!Name = fld.Properties!Name
rst!Desc = fld.Properties!Description
rst!Type = fld!Properties!????Datatype????
rst.Update
Next intX
</code>
Thanks.
<Code>
Dim dbs As Database
Dim tdf As DAO.TableDef
Dim fld As DAO.Field
Dim rst As DAO.Recordset
Dim intX As Integer
Set dbs = CurrentDb()
Set tdf = dbs.TableDefs("TableName")
Set rst = dbs.OpenRecordset("tblTemp")
For intX = 0 To 300
Set fld = tdf.Fields(intX)
rst.AddNew
rst!Name = fld.Properties!Name
rst!Desc = fld.Properties!Description
rst!Type = fld!Properties!????Datatype????
rst.Update
Next intX
</code>