Results 1 to 2 of 2
  1. #1
    asparks16 is offline Novice
    Windows Vista Access 2007
    Join Date
    Jun 2012
    Posts
    1

    Variable Column Headings

    Hello! This is my first post and I hope I can describe my problem clearly. I have created a db to collect information about a product line. Each product has a code that IDs the product type (i.e. cleaner, defoamer). Each product type has sub-categories (application, pH, foam). Since not every sub-category is going to apply to each product type and not all of the fields are of the same data type, I have created generic fields in the product table to store the information and then I have a "headings" table that provides the headings based on the product type. I have several text fields, several numeric fields and several yes/no fields setup in the products table (text1, text2, value1, value2, yesno1, yesno2, etc.) I am trying to write a query that will pull the information together for exporting to an excel spreadsheet. I cannot figure out how to get the assigned "heading" from the heading table to appear as the column heading in the query. Of course, this is dependent upon the product type (ProdLine3_ID), so I have linked the product table and the heading table in the query on that field. I would like the column heading to be a field value from the heading table (i.e. "Form"), but the actual field value to be from the products table (i.e. "liquid" or "powder")

    Any suggestions on other ways to configure this are appreciated, as well.



    Thanks!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Field names in Access query object cannot be dynamically set by a variable.
    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: 8
    Last Post: 05-14-2012, 09:49 AM
  2. csv import second row contains column headings
    By dr_patso in forum Import/Export Data
    Replies: 1
    Last Post: 07-16-2011, 03:56 PM
  3. Resizing column headings
    By allykid in forum Access
    Replies: 0
    Last Post: 03-10-2011, 12:58 PM
  4. Get column headings from closed Workbook
    By Deutz in forum Access
    Replies: 1
    Last Post: 12-10-2010, 09:06 AM
  5. Cross Tab Column Headings...
    By mhoctober in forum Queries
    Replies: 3
    Last Post: 09-10-2010, 01:21 PM

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