How to correctly display report details

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stateemk
    New Member
    • Aug 2009
    • 62

    How to correctly display report details

    I have attached two pdf files of a report that I'm trying to get right. The Regio1000 attachment is correct. The Region9000 attachment is not correct. There should be a 9000 Undesignated Region 9 in the blue section of the Region 9, but since the report is grouped by Region (listed in the tan bar above the blue) then by Code, it doesn't pull the 9000 charity code first so it won't display in the blue area. Following is the code for the blue area.
    Code:
    =IIf([CharCode]=1000,1000,IIf([CharCode]=2000,2000,IIf([CharCode]=3000,3000,IIf([CharCode]=4000,4000,IIf([CharCode]=5000,5000,IIf([CharCode]=6000,6000,IIf([CharCode]=7000,7000,IIf([CharCode]=8000,8000,IIf([CharCode]=9000,9000," ")))))))))
    Let me know if you need any other info. I'm at a loss on how to fix this.
    Attached Files
  • TheSmileyCoder
    Recognized Expert Moderator Top Contributor
    • Dec 2009
    • 2322

    #2
    Let me see if I got this right, you want the 9000 to appear in the blue area, BEFORE the 8XXX series?

    The IIF statement is that in a header of sorts?

    Comment

    • stateemk
      New Member
      • Aug 2009
      • 62

      #3
      Yes, I want the 9000 to appear in the blue before the 8xxx series.

      Yes the IIF statement is the code that is in the blue header area.

      Comment

      • TheSmileyCoder
        Recognized Expert Moderator Top Contributor
        • Dec 2009
        • 2322

        #4
        Its possible, but its deffinately not simple. If you really NEED it to be like that, you would need to open the report once in preview (can be in code and hidden) record on which page the first 9XXX appears, then close the report, store teh values in a seperate table, and then reopen the report (I use a similar approach to create a Table of Contents). This is because its not really that easy beforehand to predict whether or not the 9xxx series will start on that page.

        If you could live with teh blue ribbon being above each group (1 above 8xxx and 1 above 9x), I think you could do a grouping with a interval of 1000.


        I can help you with both solutions, so let me know what you decide upon. It would be easier to help either way if you can attach the DB to the thread.

        Comment

        • stateemk
          New Member
          • Aug 2009
          • 62

          #5
          Originally posted by TheSmileyOne
          Its possible, but its deffinately not simple. If you really NEED it to be like that, you would need to open the report once in preview (can be in code and hidden) record on which page the first 9XXX appears, then close the report, store teh values in a seperate table, and then reopen the report (I use a similar approach to create a Table of Contents). This is because its not really that easy beforehand to predict whether or not the 9xxx series will start on that page.

          If you could live with teh blue ribbon being above each group (1 above 8xxx and 1 above 9x), I think you could do a grouping with a interval of 1000.


          I can help you with both solutions, so let me know what you decide upon. It would be easier to help either way if you can attach the DB to the thread.
          This is a report that is going to be ran from year to year and the number of pages will be different every year.

          Comment

          • TheSmileyCoder
            Recognized Expert Moderator Top Contributor
            • Dec 2009
            • 2322

            #6
            I wrote 2 different methods in my last post, and your latest post doesn't really change anything. Either method can still be used, you just need to decide which way to proceed.

            Comment

            • stateemk
              New Member
              • Aug 2009
              • 62

              #7
              I'll have to go with the first method. How would I do that? Thanks for helping out.

              Comment

              • stateemk
                New Member
                • Aug 2009
                • 62

                #8
                Originally posted by TheSmileyOne
                I wrote 2 different methods in my last post, and your latest post doesn't really change anything. Either method can still be used, you just need to decide which way to proceed.
                I'll have to go with the first method. How would I do that? Thanks for helping out.

                Comment

                • TheSmileyCoder
                  Recognized Expert Moderator Top Contributor
                  • Dec 2009
                  • 2322

                  #9
                  Sorry for the late reply.

                  I need some further details:
                  What is the logic behind when to show the header? How do you want the code to react if both the 8000 series and the 9000 series start on the same page? Would it be acceptable to just make a pagebreak when you reach the end of the 8000 series? Would make it alot simpler.

                  Ill message you some contact details if you want to try to have a chat about it.

                  Comment

                  • stateemk
                    New Member
                    • Aug 2009
                    • 62

                    #10
                    The only reason the code that's already in the report isn't working is because in Region 9 (9000 series), there are some 8000 series. The 8000 series represents the statewide codes so when someone in Region 9 chooses an 8000 code, the report is set up to display the numbers in ascending order so it wants to display the 8000 numbers before the 9000 numbers when it's in the 9000 series. It works fine for every other series, because all the other series are less than 8000. So, when a new header is started, the 1000, 2000, 3000, etc are always the beginning number since they're the smallest in that series and the 8000 series fall after those numbers. The user wants each series to start with the 1000, 2000, 3000, etc then display the rest of the numbers within the series. Does this help clear things up any?

                    Comment

                    • TheSmileyCoder
                      Recognized Expert Moderator Top Contributor
                      • Dec 2009
                      • 2322

                      #11
                      Is there some hidden value not shown in the report, that is used to group the 8000 numbers within the Region 9?

                      The 2 pdf you attached, are they from the same report, or are they from 2 different reports?

                      If possible, can you:
                      a) attach the db here (possibly without personal details)
                      B) if not A, make a db completely without data, and attach it here
                      C) If neither a or B works then:make a new mdb, import the report without any tables, and attach the new db here.

                      Comment

                      • stateemk
                        New Member
                        • Aug 2009
                        • 62

                        #12
                        Originally posted by TheSmileyOne
                        Is there some hidden value not shown in the report, that is used to group the 8000 numbers within the Region 9?

                        The 2 pdf you attached, are they from the same report, or are they from 2 different reports?

                        If possible, can you:
                        a) attach the db here (possibly without personal details)
                        B) if not A, make a db completely without data, and attach it here
                        C) If neither a or B works then:make a new mdb, import the report without any tables, and attach the new db here.
                        I emailed you a condensed version of the database. Let me know what you think when you get a chance.

                        Comment

                        Working...