TheRealDeal
Technical User
Is it possible to return the Description of a Table for VBA? If so, how? I am wanting to use the Description of the table in a form to update the end-user about which table is being dynamically processed.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Public Function tableDescription(tableName As String) As String
Dim Db As Database, Prp As Property
Set Db = CurrentDb
For Each Prp In Db.TableDefs(tableName).Properties
If Prp.name = "Description" Then tableDescription = Prp.Value
Next
Db.Close
Set Db = Nothing
End Function
?tableDescription("MyTable")