I have a form with a subform. At the form I have checkboxes and comboboxes that filters the data in the subform (query based on at table). At the report I count all the records that has been filtered, which is working fine, but some of the records are grouped together and I only want to count the group.
These are the fields:
Field "Signal designation" is different signals
Field "Alarm type" is different alarm types
Field "RTU" contains a "X" or "G". "G" is used for grouped records and "X" for single records.
Field "RTU_GROUP_NO" is filled in with a number if field RTU has a "G". This number will separate the grouped signals.
Lets say that we have eight (8) signals where three (3) of them is grouped together.
_____________________________________________
|Signal designation|Alarm type|RTU|RTU_GROUP_NO|
---------------------------------------------------------------
|Signal 1 |Status | X | |
|Signal 2 |Trip | G | 1 |
|Signal 3 |Trip | G | 1 |
|Signal 4 |Trip | G | 2 |
|Signal 5 |Trip | G | 2 |
|Signal 6 |Trip | G | 2 |
|Signal 7 |Trip | G | 3 |
|Signal 8 |Trip | G | 3 |
In the report I will have a count of eight (8), but I want report to count only four (4) as three of them is grouped.
Any ideas?
Regards
Stefan
These are the fields:
Field "Signal designation" is different signals
Field "Alarm type" is different alarm types
Field "RTU" contains a "X" or "G". "G" is used for grouped records and "X" for single records.
Field "RTU_GROUP_NO" is filled in with a number if field RTU has a "G". This number will separate the grouped signals.
Lets say that we have eight (8) signals where three (3) of them is grouped together.
_____________________________________________
|Signal designation|Alarm type|RTU|RTU_GROUP_NO|
---------------------------------------------------------------
|Signal 1 |Status | X | |
|Signal 2 |Trip | G | 1 |
|Signal 3 |Trip | G | 1 |
|Signal 4 |Trip | G | 2 |
|Signal 5 |Trip | G | 2 |
|Signal 6 |Trip | G | 2 |
|Signal 7 |Trip | G | 3 |
|Signal 8 |Trip | G | 3 |
In the report I will have a count of eight (8), but I want report to count only four (4) as three of them is grouped.
Any ideas?
Regards
Stefan