Results 1 to 4 of 4
  1. #1
    mike_980 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    58

    use the result of a query column as a header in the same query?

    Hi everyone,
    for complex reasons I am using Access 2000 for this little project.

    I have a query which basically returns a time log of engine data,

    LogTime...........PID_description.......... ECU_value
    07.28.46...... Engine coolant temp ............65


    07.28.47 ..... Engine coolant temp ............65


    Ideally I want to be able to export this data to excel, with PID_discription hidden and "Engine coolant temp" as the header for the "ECU_value" header.

    The end result I have in my head is something like this:

    LogTime ....Engine coolant temp
    07.28.46................. 65
    07.28.47 ................ 65

    I also need to be able to add up to around 100 other values to the query from other PID descriptors.

    At the moment I have a table with each PID ID number with its description which is linked to the table of data from the log file so that a description can be linked to the PID numbers in the log.

    Hopefully it is understandable what I am after!

  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
    53,770
    What do you mean by 'add up to around 100 other values'? You want each descriptor to be a separate column? That sounds like a CROSSTAB query. In Excel it is a pivot 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.

  3. #3
    mike_980 is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Jan 2012
    Posts
    58
    Sorry i should have explained better, i will have a form which controls the query so the user can select to view engine coolant temp, then maybe engine oil temp and ignition advance. There are around 140 parameters measured in the log so in theory the user could select them all (though unlilely). Then i essentially want the PID description to be the query header with the values displayed under it so that the query will be easier to view in data format and easier to graph from in excel.

    Although i have good experience in access and excel i am so far pretty ignorant of crosstabs and pivot tables so i will check them out now thanks

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Is the graphing so complicated can't do it in Access? All of my graphing is done within Access.
    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. Replies: 4
    Last Post: 04-22-2014, 08:23 AM
  2. Adding "Open" column to Query Result
    By premis in forum Queries
    Replies: 12
    Last Post: 05-30-2012, 03:47 PM
  3. Replies: 4
    Last Post: 05-21-2012, 04:09 PM
  4. Replies: 3
    Last Post: 09-28-2011, 04:29 PM
  5. Replies: 2
    Last Post: 05-27-2010, 10:31 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