I searched the forums before posting this, and found some posts, and answers that came close but did not quite do it.
With that in mind, here's the problem I have.
I have a report that has a text field [Rank] in it with a value =1. It is set up as a running sum, ultimately I use it to filter for top 50 clients.
I have code on the print event that filters it all the way to print preview. Upon going to print, or page setup, it clears the page of all data.
I have moved this code to on_format with no luck....as a matter of fact at on_format it clears it out completely.
Here's the code.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Rank >= 50 Then
Detail.Visible = False
End If
Anybody have any idea what's going on? At one point this code worked just fine. I was brought in to fix it. I also cannot fathom what might have changed that would make it behave differently.
Thanks,
With that in mind, here's the problem I have.
I have a report that has a text field [Rank] in it with a value =1. It is set up as a running sum, ultimately I use it to filter for top 50 clients.
I have code on the print event that filters it all the way to print preview. Upon going to print, or page setup, it clears the page of all data.
I have moved this code to on_format with no luck....as a matter of fact at on_format it clears it out completely.
Here's the code.
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If Rank >= 50 Then
Detail.Visible = False
End If
Anybody have any idea what's going on? At one point this code worked just fine. I was brought in to fix it. I also cannot fathom what might have changed that would make it behave differently.
Thanks,