Turn columns into rows

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do you change columns into rows in MS Access?
EX:

FName LName
------------------
Bob Davis
Jeff Wilson

Into

Category Data
------------------
Fname Bob
Fname Jeff
Lname Wilson
Lname Davis

Any and all help is greatly appreciated!!!

Thanks!
 
This is a job for a Union query.

SELECT "FName" AS Catagory, FName AS Data
FROM tblNames
UNION ALL
SELECT "LName", LName
FROM tblNames ;

Put in the right table name.
 

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

Back
Top