tvanstiphout
Well-known member
- Local time
- Today, 13:33
- Joined
- Jan 22, 2016
- Messages
- 684
In Report_Open I have:
Me.Filter = "EmployeeID = 1"
Me.FilterOn = True
For example, you can paste this in Northwind Dev edition rptSalesByEmployee. Set a breakpoint on the next line. Observe that FilterOn is still False. Why is that? And the report is not filtered.
I know there are other ways to restrict the report to my Where-condition, but I am interested in exploring THIS version. From all I can tell, it should work. Chatty thinks so too.
Me.Filter = "EmployeeID = 1"
Me.FilterOn = True
For example, you can paste this in Northwind Dev edition rptSalesByEmployee. Set a breakpoint on the next line. Observe that FilterOn is still False. Why is that? And the report is not filtered.
I know there are other ways to restrict the report to my Where-condition, but I am interested in exploring THIS version. From all I can tell, it should work. Chatty thinks so too.