Results 1 to 5 of 5
  1. #1
    brobb56 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    65

    Omiting null line

    I have created a report in which I have name TIN Form Year
    There is year/form 1 year/form 2 year/Form 3 and Year/form 4.


    My problem is name and TIN show for years2 3 and 4 when there is no data is year and form. I want the report to omit the line there is no data present in year and form. Can you help

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    As previously discussed, your denormalized data is going to make this harder than it should be. I thought I gave you one method, though I now recall you wanted to repeat the name and TIN. The easiest way I can think of to do that is normalize the data with a UNION query:

    SELECT Name, TIN, Form1, Year1
    FROM TableName
    WHERE Form1 Is Not Null
    UNION ALL
    SELECT Name, TIN, Form2, Year2
    FROM TableName
    WHERE Form2 Is Not Null
    UNION ALL
    ...

    and base your report on that.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    brobb56 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    65

    Not sure how to do it

    Not sure how you do that. I am sorry I am new to this. Here is the db.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Give it a try at least. Start a query using the first year and then switch to SQL view and add the others (you can't build a UNION query in the designer).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    brobb56 is offline Advanced Beginner
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2011
    Posts
    65

    how to start

    Still unsure how to to this. I am sorry I am trying to learn. Here is the db. My Ives report is what is in question taken from Ives query.

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

Similar Threads

  1. Skip a line
    By Bear in forum Queries
    Replies: 13
    Last Post: 08-19-2011, 03:17 PM
  2. Replies: 7
    Last Post: 04-11-2011, 03:58 PM
  3. How to do line by line compare of VB code?
    By Buakaw in forum Access
    Replies: 2
    Last Post: 02-14-2011, 11:46 PM
  4. Replies: 5
    Last Post: 12-06-2010, 10:15 AM
  5. Wrap line
    By devcon in forum Reports
    Replies: 1
    Last Post: 10-22-2010, 09: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