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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Field Names from Queries

Status
Not open for further replies.

ShaneBrennan

Programmer
May 19, 1999
198
GB
Does anyone have a simple piece of code to view/display the names of fields generated by a cross tab query? I wish to place them into listBox on a form - so the user can select which set/series of data he/she wishes to update.

Thank you.

Shane Brennan



Shane Brennan
Shane.Brennan@tcat.ac.uk

 
Well, assuming you use a Recordset object (eg oRst),
could do

oRst.Fields(<field name or number>).Name


Ben
+61 403 395 052
 
Thanks Ben

This has been extremely useful!

Shane
Shane Brennan
Shane.Brennan@tcat.ac.uk

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top