Report format question (1 Viewer)

arage

Registered User.
Local time
Today, 15:41
Joined
Dec 30, 2000
Messages
537
Report format question
Each detail in my report has a cheque # column that shows either a cheque # or “Unpaid”
I put text in my footer that says ‘Your total of “Unpaid” cheques is’ and then there’s a text box. I put this code in my detail format event to get the value of total “Unpaid” cheques, but it keeps coming up blank, any help?

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)

If Me.Cheque_ = "Unpaid" Then
Me.Text167 = Me.Text167 + Me.TotalPay
End If

End Sub
 

llkhoutx

Registered User.
Local time
Today, 09:41
Joined
Feb 26, 2001
Messages
4,018
you can't put the "total" in the footer, it has to be =sum([cheques amount]) where [cheques amount] is the field being displayed above the footer.
 

Users who are viewing this thread

Top Bottom