Hello, I'm in Micrososft Access 2016 and I have a list on the form.
I want to filter the field in the list by ID. The filter ID is the form, so I want to access one of the variables inside the form in the SQL statement.
I have this query now:
Code:
SELECT t_parents.CodiParent, t_parents.CodiFamiliaParent, t_parents.CodiTipusFamiliaParten, t_parents.CodiMotiuParent, t_parents.Cognom1, t_parents.Cognom2, t_parents.Nom, t_parents.[nif/nie], t_parents.Origen_Nivell_Renda, t_parents.Sol·licitant, t_parents.Altres_Rendiments
FROM t_parents
WHERE (((t_parents.CodiFamiliaParent)=1));
they filter for a ID static ( ID = 1 )
But I want to filter by a form ID:
Thanks !!