Results 1 to 5 of 5

Data in Report View and Print Preview different

  1. #1
    kaaate is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2018
    Posts
    2

    Unhappy Data in Report View and Print Preview different

    Hello,

    I'm very new to Access and still teaching myself so apologies if I miss anything.

    I've created a sub report [Project Financials Income subreport] and need to have the values of the sub reports calculated in the footer of each grouping of my main report.

    I'm using =IIf(Not (IsNumeric([Project Financials Income subreport].[Report]![Text40])),0,[Project Financials Income subreport].[Report]![Text40])
    (Note: [Text40] is a =Sum formula located in my subreport Report Footer)



    This field calculates correctly in Report View/Layout View but incorrectly in Print Preview (see red circles).

    Report view
    Click image for larger version. 

Name:	report view.png 
Views:	17 
Size:	17.0 KB 
ID:	36442

    Print preview
    Click image for larger version. 

Name:	print preview.png 
Views:	17 
Size:	15.8 KB 
ID:	36443

    Does anyone have any suggestions on why these values are different in the different views? Or another formula I can try that might work in print preview?

    Thank you :)

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    7,028
    Always use print preview.

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    4,604
    Stated problem: totals are wrong in print preview. Suggestion: always use print preview. Am I misinterpreting something

    Where/how are the calculations being performed? Group header/footer in code? Group header/footer on report? Section header?
    What about the other report columns; do they calculate correctly?
    Are you switching views and causing the problem (indicates calculations being repeated by code) or does it also fail if you open in print preview only?
    Does it calculate correctly if printed?
    - "doesn't work" is no help. Post err msgs and where.
    - Use code tags for code/sql. Implement changes in copies of your database.
    So, like, why do you, like, start every sentence with, like, "so"?

  4. #4
    kaaate is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2018
    Posts
    2
    Hi Micron,

    Thanks for the response. The below is the [Field Name] - Location/Location - Formula of all relevant fields:
    1. [2019-2020] - Subreport [Project Financials Income subreport]/Design View/Detail - [2019-2020]
    2. [Text40] - Subreport [Project Financials Income subreport]/Design View/Report Footer - Sum([2019-2020])
    3. [Text173] - Mainreport/Design View/Group Footer - IIf(Not (IsNumeric([Project Financials Income subreport].[Report]![Text40])),0,[Project Financials Income subreport].[Report]![Text40])

    All other report columns are calculating correctly in both views.
    The field does not calculate correctly when opening print preview only (not switching views).
    The field does not calculate correctly when printed.
    The field only calculates correctly when opening in report view/layout view.

    Hope this helps

  5. #5
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    45,523
    I cannot replicate this issue.

    If you want to provide db for analysis, follow instructions at bottom of my post.
    To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression. Attachment Manager is below Advanced editor window, click Go Advanced below Quick Reply window.

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

Similar Threads

  1. Report View VS Print Preview
    By deepakg27 in forum Reports
    Replies: 4
    Last Post: 07-04-2018, 07:20 PM
  2. Data changes from Report View to Print Preview
    By AccessPadawan86 in forum Reports
    Replies: 9
    Last Post: 07-24-2017, 07:49 AM
  3. Replies: 3
    Last Post: 04-28-2017, 08:51 AM
  4. Switch from Print Preview to Report View
    By MatthewR in forum Reports
    Replies: 5
    Last Post: 10-20-2015, 11:40 AM
  5. convert report view to print preview
    By DarrenUD in forum Reports
    Replies: 3
    Last Post: 03-18-2013, 11: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
  •  
Tech Forums: Microsoft Office Forums