Link to home
Start Free TrialLog in
Avatar of Cazar
CazarFlag for United States of America

asked on

Skip a detail row in an access 2007 report

I need to skip a detail row in an Access report when one of the detail values is null. I can't change the query that feeds the report to eliminate the null rows for reasons I won't go into here.

I saw this solution in another post:

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
    If Me.MyID = 1 Then Cancel = True
End Sub

I added this to the report code, but it does not seem to get called. I even changed to condition to if 1=1 then cancel = true, but it still did not work.
Avatar of tbsgadi
tbsgadi
Flag of Israel image

Try using the Filter property on Report_Open

Gary
ASKER CERTIFIED SOLUTION
Avatar of Cazar
Cazar
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial