Cambiar Select del formulario

Estimados, tengo una duda y necesito que me ayuden.

Cuando cargo un formulario o una Grid, pide la coneccion a una tabla de la BD y gestiona un Select en el SQL por defecto.

El problema es que necesito cambiar las condiciones del where en el formulario, dependiendo de algunos eventos, para volver a recargar y tener los nuevos registros.

El problema es no se como hacerlo.
Si alguien puede ayudarme , se los agradecere.

Dear, I have a question and I need help.

When I load a form or a Grid, it requests the connection to a table in the database and manages a Select in the SQL by default.

The problem is that I need to change the where conditions in the form, depending on some events, to reload and have the new records.

The problem is I don’t know how to do it.
if anyone can help me, I will appreciate it.