I have 2 tables.
samples and product.
they are linkey by the field productNo.
But for each samples, there is a multiple match based on a field named revision...cause there can be multiple revision for each product...
ok check:
productNo: 101
description: product a
revision: 1
effectiveDateTime: 01/01/2002
productNo: 101
description: product a
revision: 2
effectiveDateTime: 01/01/2003
so for each sample with the productNo = 101
i have in this exemple 2 matches...
i have a field called LoggedDateTime in sample table.
and this field will tell me which revision to choose to get only one record in product table.
i set a record selection formula :
LoggedDateTime >= effectiveDateTime
but for all records for which loggedDateTime is >= 01/01/2003, i get two times each ones....
so i put a group selection formula :
effectiveDateTime = maximum(effectiveDateTime)
BUT NOW, i only get the records corresponding to revision 2.
So how can i solve this one?
samples and product.
they are linkey by the field productNo.
But for each samples, there is a multiple match based on a field named revision...cause there can be multiple revision for each product...
ok check:
productNo: 101
description: product a
revision: 1
effectiveDateTime: 01/01/2002
productNo: 101
description: product a
revision: 2
effectiveDateTime: 01/01/2003
so for each sample with the productNo = 101
i have in this exemple 2 matches...
i have a field called LoggedDateTime in sample table.
and this field will tell me which revision to choose to get only one record in product table.
i set a record selection formula :
LoggedDateTime >= effectiveDateTime
but for all records for which loggedDateTime is >= 01/01/2003, i get two times each ones....
so i put a group selection formula :
effectiveDateTime = maximum(effectiveDateTime)
BUT NOW, i only get the records corresponding to revision 2.
So how can i solve this one?