Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[b] Passing Caption property using ADO [/b]

Status
Not open for further replies.

Jimdeb03

IS-IT--Management
Dec 10, 2002
89
US
I'm looking for a method to pass the Caption property from an Access database using ADO 2.7 to my VB application. The field names are rather cryptic which are used to populate DataGrid columns and labels throughout the app.

It would be nice if instead the field name was displayed to show the Caption instead.

All queries are in the app so implementing aliases for each field for each query is something I'd rather avoid.

Any ideas?
thanks
Jim
 
Hi!

Not sure if the Caption property is exposed thru ADO/ADOX, but if you could use the Description property, there's some samples on how to retrieve that in this thread thread709-752030. Else, you might try the question in that forum or the VB5/6 forum (forum222), since you're trying this from VB.

DAO offer means of retrieving the caption, see for instance, thread705-764083 and thread707-748373, note that these samples are from within Access.

Roy-Vidar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top