Setting filters

Thanks Frank… I tried your code and it compiled but it still doesn’t work. Are you putting this code on the form on OnAfterGetRecord or on the field on the form?