Retrieve caption of a field ??????

M

Mendhak

Hi all,
I want to retrieve the caption property of a field in my MS Access table.
I am using ADO. Tried a lot, couldn't get anything relevant.
Please help.
 
A

Allen Browne

You cannot get this using ADO.
I don't believe ADOX can give it to you either.

You need to use the library that Access itself uses: DAO.
Then it's simply:

CurrentDb().TableDefs("MyTable").Fields("MyField").Properties("Caption")
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top