|
-
Mar 5th, 2012, 09:23 AM
#1
Thread Starter
Member
Field Captions in Access
I'm using VB6 and Access. I need to get a list of field names and respective field captions for each table. I need to use this information in my app.
I have tried ADO/ADOX commands but this is not possible, since field Caption property is not available to ADO/ADOX. I'm thinking about creating an auxiliar table inside database with fields like TableName, FieldName, FieldCaption.
But I have no idea about how to save that information to the auxiliar table. I don't know if this is made inside the app. with some SQL commands or by internal Access commands.
Also, this need to be performed everytime the app. opens the database, so that the information is always updated.
Please, any idea?
Thanks.
-
Mar 5th, 2012, 09:48 AM
#2
New Member
Re: Field Captions in Access
In sql you can use 'show tables' to get a list of the tables in your database.
With the list of tables you can make a command like
"show columns from -your table-"
Last edited by Ritual; Mar 5th, 2012 at 09:52 AM.
-
Mar 5th, 2012, 12:57 PM
#3
Thread Starter
Member
Re: Field Captions in Access
 Originally Posted by Ritual
In sql you can use 'show tables' to get a list of the tables in your database.
With the list of tables you can make a command like
"show columns from -your table-"
I get an error when I try these commands.
I guess they are not available in Access.
More ideas?
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
|