Hello everyone,
I've got a big problem, so I'll try to be crystal clear.
My Database
My database contain informations about soil. The Soil_T have different fields : ID_Soil (Auto#), Type (linked to another table), description (long text)... and Treatment (Multivalued field or many-to-many).
This tabe is linked to Analyse_T wich contain :ID_Analyse (Auto#), ID_Soil (number), Masse (number)...
1drv.ms/x/s!AqNow7kzXdyKhEM-p5ptOdSDrIC2
What I want to do
In antoher form, I have many field that allows me to filter the table Soil_T and Analyse_T. Basicly, this code -> allenbrowne.com/ser-62code.html ; allenbrowne.com/ser-62.html
So I am filtering the form with a filter with fields in the header.
It works number one when Treatement is a multivalued field except that I can't use the field Treatement to filter.
It seem to works when I am doing a many-to-many Relationship. When I am filteringwith the field treament, it works. But when I am filtering with another field, if a record has two Treaments, it's going to appear twice ! Not what I want.
Waht I want
I want to be able to filter with all the fields and I want every record to show only once.
The filter field (in the header) can be a combobox or a multivalued field. Multivalued field would be nice, but it may be to complicated.
Thanks a lot. I hope I am clear enough
PS: I looked a loooooooot on the internet and on the forum. I didn't find an answer :/
LeslyP
I've got a big problem, so I'll try to be crystal clear.
My Database
My database contain informations about soil. The Soil_T have different fields : ID_Soil (Auto#), Type (linked to another table), description (long text)... and Treatment (Multivalued field or many-to-many).
This tabe is linked to Analyse_T wich contain :ID_Analyse (Auto#), ID_Soil (number), Masse (number)...
1drv.ms/x/s!AqNow7kzXdyKhEM-p5ptOdSDrIC2
What I want to do
In antoher form, I have many field that allows me to filter the table Soil_T and Analyse_T. Basicly, this code -> allenbrowne.com/ser-62code.html ; allenbrowne.com/ser-62.html
So I am filtering the form with a filter with fields in the header.
It works number one when Treatement is a multivalued field except that I can't use the field Treatement to filter.
It seem to works when I am doing a many-to-many Relationship. When I am filteringwith the field treament, it works. But when I am filtering with another field, if a record has two Treaments, it's going to appear twice ! Not what I want.
Waht I want
I want to be able to filter with all the fields and I want every record to show only once.
The filter field (in the header) can be a combobox or a multivalued field. Multivalued field would be nice, but it may be to complicated.
Thanks a lot. I hope I am clear enough
PS: I looked a loooooooot on the internet and on the forum. I didn't find an answer :/
LeslyP
Last edited: