Set Query caption through SELECT statement

i have the following SELECT statement....

"SELECT PurchaseOrders_Detail.Product_ID, PurchaseOrders_Detail.Name, PurchaseOrders_Detail.Book_Price FROM ......etc.

This statement is being set in a list and will fetch the data from a query.
I want to have the fields, like Product_ID, Name, Book_Price.. appear with my own headings in the list.

Right now they appear as is... Product_ID etc. and there is no caption set in the query or the table so the the raw field name is displayed in the heading.

How can I set my own caption (heading name) by passing a SELECT statement to a list.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

use the "as"

SELECT PurchaseOrders_Detail.Product_ID as "name", PurchaseOrders_Detail.Name, PurchaseOrders_Detail.Book_Price FROM ......etc.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
TimCotteeHead of Software ServicesCommented:
"SELECT PurchaseOrders_Detail.Product_ID As [My New Heading 1], PurchaseOrders_Detail.Name As [My New Heading 2], PurchaseOrders_Detail.Book_Price As [My New Heading 3] FROM ......etc.

For example.
SELECT PurchaseOrders_Detail.Product_ID as "product", PurchaseOrders_Detail.Name as "name", PurchaseOrders_Detail.Book_Price FROM
InterCrownTechAuthor Commented:
That's great. Thanks..... BTW - is the a limit to the number of AS commands you can have.... because i have around 15 fields.... and it seams to only work with 6...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.