Results 1 to 8 of 8
  1. #1
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316

    Dynamic Headings on Multi Column Report

    I have a 4 column, simple report listing inventory items in a down, then across layout. There are only three data elements, category, item number, description, sorted in category then item number sequence. There are a number of items in each category. Each of the 4 columns is a column with the three data elements, above each other. For example,



    Category 1_____________Category 1 ________________Category 3_______________ Category 4
    Item 1 _________________Item 3 _____________________Item AAA ___________________Item 111
    Item 1 Description_______ Item 3 Description ____________Item AAA Description _________Item 111 Description


    Category 1 ____________Category 2 _________________Category 3 ________________Category 5
    Item 2 _________________ Item A _____________________Item BBB ____________________Item ABC
    Item 2 Description ________Item A Description ___________Item BBB Description __________Item ABC Description

    I want the Category name to appear only (1) when it changes or (2) when it is at the top of the column on the page. I have marked the ones in red that I don't want to appear and I show the ones I do want to appear in bold text.

    I am comfortable working with VBA events so it I can make this happen using VBA, that would be fine.

    Thanks for any help you can provide. Eddie

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    This looks painfully difficult because the display condition is dependent on values in other records. For a record to use value from another record usually calls for a subquery.

    Could try textbox HideDuplicates property but I am doubtful it can handle your requirements.
    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
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    Thanks for your suggestion. The Hide Duplicates does solve objective 1 in that it doesn't appear unless it changes. However, if the first category in column 2 is the same as the last category in column 1, it doesn't appear at the top of column 2. Is there a way to detect what column number the data is being formatted on? Thanks, Eddie

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    I don't even understand why that is happening. Surely HideDuplicates property of a textbox doesn't know what is in another textbox? It should only consider the values of the field the textbox is bound to, not the values of field another textbox is bound to.
    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.

  5. #5
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    I have only three text boxes on the report...

    Category (Hide Duplicates = Yes)
    Item Number
    Item Description

    These text boxes are set up only once, but the data lists down the page for each item. Since I have the report set to 4 columns, after the first column fills up the page the second column starts from the top. Same for columns 3 and 4.

    Do you know of any way I can detect when the text boxes move from one column to the next?

    Eddie

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Oh, didn't catch what you meant by '4 column' in original post. Nope. That is way out of my experience. I have no idea if, and very much doubt, it is possible.
    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.

  7. #7
    EddieN1 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    May 2011
    Posts
    316
    Okay, thanks. Maybe someone else has figured this out in the past. Eddie

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    The only approach I can imagine would be an elaborate VBA procedure that writes data to a 'temp' table set up with 4 columns. It is technique I use to rearrange data into horizontal orientation. Example can be viewed at http://forums.aspfree.com/microsoft-...ry-322123.html
    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. Variable Column Headings
    By asparks16 in forum Queries
    Replies: 1
    Last Post: 06-28-2012, 07:58 PM
  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. Replies: 1
    Last Post: 03-14-2011, 11:11 AM
  4. Resizing column headings
    By allykid in forum Access
    Replies: 0
    Last Post: 03-10-2011, 12:58 PM
  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