Results 1 to 9 of 9
  1. #1
    Madison06 is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2023
    Posts
    8

    Why is my report SO big - corruption or calculations in controls?

    I have a report that is way larger than I think it should be. It's a basic invoice for an order but it's around 20MB. I need to have several different versions of this invoice so this is causing my FE to be huge and run slow.



    It's got about 9 calculated controls (with lots of IIF situations that apply) on it and the reason why I'm not running the calculations in the underlying query is because these calculations rely on whether or not the embedded subreport .hasdata.

    So for example, if an order has add-ons (from a table on the many side), the report needs to calculate that subtotal and then calculate things like adding sales tax (IF it's a taxable order), processing fees (IF it's a certain type of order) etc etc.

    Could this be reason why the report is so large? Is there a better way to do these calculations? I *think* I've ruled out corruption. I recreated the report by copying and pasting the controls into a new report but it's still huge. Did I copy the corruption over? I have a form that runs these calculations as well and it's also pretty large (around 24 MB) so that also makes me think it's not corruption.

  2. #2
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,757
    Hi
    Are you able to upload a copy of the Db with no confidential data?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    I am curious, how did you determine sizes if these objects?
    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.

  4. #4
    Madison06 is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2023
    Posts
    8
    Not really. But maybe these screen shots will help? That's it. That's the whole report. Nothing out of this world. Just a basic invoice with some calculations. There's a page break after that with some contract text (identifying info so I'm leaving that out) and a footer with some basics like page count and generated date.
    Click image for larger version. 

Name:	SS1.JPG 
Views:	17 
Size:	159.1 KB 
ID:	53083Click image for larger version. 

Name:	SS2.JPG 
Views:	17 
Size:	183.5 KB 
ID:	53084

  5. #5
    Madison06 is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2023
    Posts
    8
    Quote Originally Posted by June7 View Post
    I am curious, how did you determine sizes if these objects?
    Check file size, then deleted the object, C & R, then checked the new file size. Every time I deleted one of these offending reports, file size went down by about 20MB

  6. #6
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Why does EventType combobox show green triangle issue flag? Why using combobox on report anyway?

    Would have to examine your db.

    I tested with my largest db (24+ mb frontend). Deleting one of largest reports (includes several graph objects) reduced file by <500kb.
    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
    Madison06 is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2023
    Posts
    8
    Quote Originally Posted by June7 View Post
    Why does EventType combobox show green triangle issue flag? Why using combobox on report anyway?

    Would have to examine your db.

    I tested with my largest db (24+ mb frontend). Deleting one of largest reports (includes several graph objects) reduced file by <500kb.
    I've been messing with things to see if I can figure out the issue so you can ignore that green flag. EventMenuPkg doesn't need to be a combo box - I can fix that. Don't think that's the issue though.

  8. #8
    Madison06 is offline Novice
    Windows 10 Office 365
    Join Date
    Nov 2023
    Posts
    8
    I figured it out. I feel so silly but I have to share in case anyone else runs into a similar issue or does the same bonehead thing I did

    The header of the report contains the company logo / letterhead and instead of inserting the logo as a teeny image file, I somehow inserted it as an unbound object linked to the word document that contained the letterhead *facepalm*. So of course when I copied and pasted all the controls over into a new report, I brought over the huge file size. Had I included that in my screenshot (withheld for obvious reasons), you guys would have figured it out instantly. You would have asked about the image.

    Thank you all for your help!

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 11 Access 2021
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Image issue crossed my mind but didn't see indication of an image in your post. I should have asked anyway.
    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: 5
    Last Post: 09-23-2017, 07:58 AM
  2. Replies: 30
    Last Post: 09-30-2015, 10:58 AM
  3. Report Calculations incorrect.....why?
    By CBRRider1 in forum Reports
    Replies: 12
    Last Post: 03-08-2014, 12:15 AM
  4. Why is my access file so big?
    By latestgood in forum Access
    Replies: 5
    Last Post: 06-14-2011, 04:16 PM
  5. Report outputted to PDF through MS Access to Big
    By icsnettech in forum Programming
    Replies: 0
    Last Post: 05-09-2011, 01:53 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