Sometimes you need to present different data to different groups of users. Let's say you run a classified ads board and wish to display the data added over the past 7 days to regular users and all of the ads to the admin.
Add the following code to the After table initialized event.
1. For MS SQL Server database:
2. For MySQL database:
3. For MS Access database:
4. If you use Dynamic Permissions, the code should be different (MySQL example).