|
-
Nov 4th, 2008, 08:47 AM
#1
Thread Starter
Lively Member
[RESOLVED] Programatically read a tables field description
In MSAccess, is the a way to programatically read a table's field description?
A quick search of the forum lead me to an unresolved post...so I am left in the dark.
The unresolved post suggested the code (similar):
Code:
CurrentDb.TableDefs("SomeTable").Fields(0).Properties("Description").value
But it does not work.
Any suggestions?
-
Nov 4th, 2008, 09:36 AM
#2
Hyperactive Member
Re: Programatically read a tables field description
If you open your table in design view you will be presented with three columns.
Field Name, Data Type and Description.
The code
Code:
Debug.Print CurrentDb.TableDefs("SomeTable").Fields(0).Properties("Description").value
Will give give the Description field of the first field of SomeTable.
If it gives nothing then that probably means that the Descritpion field for that
Table field is blank.
To test this put some text in the Description field and run the code again.
Signature Under Construction 
-
Nov 4th, 2008, 12:05 PM
#3
Thread Starter
Lively Member
Re: Programatically read a tables field description
Thanks.
The statement is bailing out because it is empy.
If the description is empty, I expected an empty string or null to be returned by the statement....but it looks like does not.
Thanks again.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|