Results 1 to 2 of 2
  1. #1
    Cassim is offline Novice
    Windows 8 Access 2007
    Join Date
    Nov 2013
    Posts
    6

    Query to convert row to header ?


    Hi Team,

    Can you please advise if there is any query that I can run to convert the row to column headers ? I only have 1 row of data and need to convert it to headers to join it with other tables/queries.

    Thanks.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    One row of data? How many fields? You want the value in each field to become a column header? This does not sound like normalized structure. Don't really understand what you are trying to do. Want to provide sample data and example of desired output?

    However try constructing the headers with expression:

    SELECT field1 As value1, field2 As value2 FROM table;
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Convert SQL Server Query to Access Query
    By Juan4412 in forum Queries
    Replies: 4
    Last Post: 04-16-2013, 12:41 PM
  2. Query to Convert table
    By dhborchardt in forum Queries
    Replies: 3
    Last Post: 10-11-2012, 10:43 AM
  3. Query to convert String to Date??
    By taimysho0 in forum Programming
    Replies: 3
    Last Post: 06-04-2012, 04:48 PM
  4. Convert Access query to SQL Server query
    By mkallover in forum Queries
    Replies: 2
    Last Post: 05-13-2011, 06:20 AM
  5. Convert query sql server for Access
    By webtony in forum Queries
    Replies: 0
    Last Post: 06-23-2009, 02:46 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums