Not printing unbound boxes in subform footer (1 Viewer)

Kayleigh

Member
Local time
Today, 11:46
Joined
Sep 24, 2020
Messages
706
Hi

I am attempting to print a form which contains several subforms. The data in the subform header and detail sections displays fine. However the figures in the unbound textboxes located in the footer are not displaying - only blank boxes are visible.

My print code is (although as a side issue I am still manually setting to landscape and A3)
Code:
  Application.Printer.Orientation = acPRORLandscape
     Application.Printer.PaperSize = acPRPSA3
    DoCmd.RunCommand acCmdPrint

Anyone know how I can resolve this?


Here is a snippet of the print-out:
1709718729930.png


And this is what its like on screen:
1709718787396.png
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:46
Joined
May 7, 2009
Messages
19,243
another maybe.
create a query for your sales table add a total (weekly) and the grand total.
use the query as recordsource of your report then make the 2 total textbox Bound to your query's totals.
 

Kayleigh

Member
Local time
Today, 11:46
Joined
Sep 24, 2020
Messages
706
The recordsource is currently a query - but its a crosstab so its all dynamically assigned on load.

I will try the totals option though. Maybe I can dynamically assign the query total to those textboxes.
 

The_Doc_Man

Immoderate Moderator
Staff member
Local time
Today, 05:46
Joined
Feb 28, 2001
Messages
27,186
Since that is a footer, it has its own section. You might be able to put something in the Footer's OnPrint or OnFormat event to fill via VBA, assuming the data could be available. Note that OnPrint events don't run if you were not open in a Print mode.
 

LarryE

Active member
Local time
Today, 03:46
Joined
Aug 18, 2021
Messages
591
Save yourself a lot of headache and just use a report. That's what they are for. Reporting stuff.
 

Users who are viewing this thread

Top Bottom