I received this module from a BB on how to fix blank fields in a
report.
Here's the problem. I have this type of set up
Name: Account: Bal:
Comment1:
Comment2:
Comment3:
Comment4:
Comment5:
Comment6:
Every record has name, account and balance. Not every record needs a
response to each comment. How do i make Access include only fields
with data when making reports. The following program with given to me
but it has a "Run Time Error"
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
Dim ctl As Control
Dim blnNoPrint As Boolean
For Each ctl In Me.Controls
If ctl.Tag = "CheckIt" Then
If IsNull(ctl.Value) Then
blnNoPrint = True
Exit For
End If
End If
Next
If blnNoPrint Then
Me.MoveLayout = False
Me.PrintSection = False
Else
Me.PrintSection = True
End If
End Sub