Update SQlFilter function and work on data entry forms