Hi! I have been trying to count duplicate BOMHeader for a while by using DCount and variations of Count, but with no luck.
The result I want is laid out in the table below.. But I cannot manage to count duplicate values and show the count in a new coloumn.
The reason for asking is that I have a database with spare parts, and the top level is called BOMHeader, with a list of items connected to the BOMheader in a separate table. I manage to count all items connected to the BOMheader, but I cannot count the number of times a BOM header is connected to a functional location ID. As you see the BOMHeader 329002 is connected to 2 functional location IDs, I have a list of 1500 functional locations...
DCount(expression;domain;[criteria]), is this at all possible?
<tbody>
</tbody>
Thank you for all help.
The result I want is laid out in the table below.. But I cannot manage to count duplicate values and show the count in a new coloumn.
The reason for asking is that I have a database with spare parts, and the top level is called BOMHeader, with a list of items connected to the BOMheader in a separate table. I manage to count all items connected to the BOMheader, but I cannot count the number of times a BOM header is connected to a functional location ID. As you see the BOMHeader 329002 is connected to 2 functional location IDs, I have a list of 1500 functional locations...
DCount(expression;domain;[criteria]), is this at all possible?
Functional location ID | BOMHeader | CountOfBOMHeader |
540-289-EC-0001 | 329002 | 2 |
540-289-EC-0002 | 329002 | 2 |
540-289-EC-0003 | 329013 | 3 |
540-289-EC-0004 | 329013 | 3 |
540-289-EC-0005 | 329013 | 3 |
<tbody>
</tbody>
Thank you for all help.