Results 1 to 3 of 3

Thread: Field Captions in Access

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2012
    Posts
    35

    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.

  2. #2
    New Member
    Join Date
    Mar 2012
    Posts
    13

    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.

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2012
    Posts
    35

    Re: Field Captions in Access

    Quote Originally Posted by Ritual View Post
    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
  •  



Click Here to Expand Forum to Full Width