Leebc
New Member
- Joined
- Dec 19, 2016
- Messages
- 10
Hi.
I need help to develop a script that will search through a field (Member Column) identify and then total up the number of times the member has entered the building. A new record is created for each entry.
I have tried a number of the suggestions for similar searches in the forum but cannot get it to work. I have managed to identify when a member enters more than once (Multi Entry) but now need to list the number of Multi Entries per member.
[TABLE="width: 274"]
<tbody>[TR]
[TD]Member
[/TD]
[TD]Multi Entry
[/TD]
[TD]Record ID
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]TRUE
[/TD]
[TD]593
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]TRUE
[/TD]
[TD]1322
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]TRUE
[/TD]
[TD]594
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]TRUE
[/TD]
[TD]1323
[/TD]
[/TR]
[TR]
[TD]10921
[/TD]
[TD]FALSE
[/TD]
[TD]1131
[/TD]
[/TR]
[TR]
[TD]11010
[/TD]
[TD]FALSE
[/TD]
[TD]1132
[/TD]
[/TR]
[TR]
[TD]11106
[/TD]
[TD]FALSE
[/TD]
[TD]595
[/TD]
[/TR]
[TR]
[TD]11107
[/TD]
[TD]FALSE
[/TD]
[TD]596
[/TD]
[/TR]
[TR]
[TD]11287
[/TD]
[TD]FALSE
[/TD]
[TD]1133
[/TD]
[/TR]
[TR]
[TD]17081
[/TD]
[TD]FALSE
[/TD]
[TD]1144
[/TD]
[/TR]
[TR]
[TD]1711
[/TD]
[TD]FALSE
[/TD]
[TD]1107
[/TD]
[/TR]
[TR]
[TD]1712
[/TD]
[TD]FALSE
[/TD]
[TD]1108
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]TRUE
[/TD]
[TD]448
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]TRUE
[/TD]
[TD]1109
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]TRUE
[/TD]
[TD]449
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]TRUE
[/TD]
[TD]1110
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]TRUE
[/TD]
[TD]604
[/TD]
[/TR]
[TR]
[TD]17441
[/TD]
[TD]TRUE
[/TD]
[TD]605
[/TD]
[/TR]
[TR]
[TD]17441
[/TD]
[TD]TRUE
[/TD]
[TD]606
[/TD]
[/TR]
[TR]
[TD]17648
[/TD]
[TD]FALSE
[/TD]
[TD]1145
[/TD]
[/TR]
[TR]
[TD]17845
[/TD]
[TD]FALSE
[/TD]
[TD]607
[/TD]
[/TR]
[TR]
[TD]18139
[/TD]
[TD]FALSE
[/TD]
[TD]608
[/TD]
[/TR]
[TR]
[TD]18431
[/TD]
[TD]TRUE
[/TD]
[TD]609
[/TD]
[/TR]
[TR]
[TD]18431
[/TD]
[TD]TRUE
[/TD]
[TD]610
[/TD]
[/TR]
[TR]
[TD]18461
[/TD]
[TD]FALSE
[/TD]
[TD]1004
[/TD]
[/TR]
[TR]
[TD]1883
[/TD]
[TD]FALSE
[/TD]
[TD]993
[/TD]
[/TR]
[TR]
[TD]18863
[/TD]
[TD]FALSE
[/TD]
[TD]1005
[/TD]
[/TR]
[TR]
[TD]1924
[/TD]
[TD]FALSE
[/TD]
[TD]564
[/TD]
[/TR]
[TR]
[TD]19350
[/TD]
[TD]TRUE
[/TD]
[TD]611
[/TD]
[/TR]
[TR]
[TD]19350
[/TD]
[TD]TRUE
[/TD]
[TD]1327
[/TD]
[/TR]
[TR]
[TD]1945
[/TD]
[TD]FALSE
[/TD]
[TD]994
[/TD]
[/TR]
</tbody>[/TABLE]
The output I require is:
[TABLE="width: 274"]
<tbody>[TR]
[TD]Member
[/TD]
[TD]Multi Entry
[/TD]
[TD]Record ID
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]2
[/TD]
[TD]593
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]2
[/TD]
[TD]1322
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]2
[/TD]
[TD]594
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]2
[/TD]
[TD]1323
[/TD]
[/TR]
[TR]
[TD]10921
[/TD]
[TD]1
[/TD]
[TD]1131
[/TD]
[/TR]
[TR]
[TD]11010
[/TD]
[TD]1
[/TD]
[TD]1132
[/TD]
[/TR]
[TR]
[TD]11106
[/TD]
[TD]1
[/TD]
[TD]595
[/TD]
[/TR]
[TR]
[TD]11107
[/TD]
[TD]1
[/TD]
[TD]596
[/TD]
[/TR]
[TR]
[TD]11287
[/TD]
[TD]1
[/TD]
[TD]1133
[/TD]
[/TR]
[TR]
[TD]17081
[/TD]
[TD]1
[/TD]
[TD]1144
[/TD]
[/TR]
[TR]
[TD]1711
[/TD]
[TD]1
[/TD]
[TD]1107
[/TD]
[/TR]
[TR]
[TD]1712
[/TD]
[TD]1
[/TD]
[TD]1108
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]2
[/TD]
[TD]448
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]2
[/TD]
[TD]1109
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]3
[/TD]
[TD]449
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]3
[/TD]
[TD]1110
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]3
[/TD]
[TD]604
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
etc.
I need help to develop a script that will search through a field (Member Column) identify and then total up the number of times the member has entered the building. A new record is created for each entry.
I have tried a number of the suggestions for similar searches in the forum but cannot get it to work. I have managed to identify when a member enters more than once (Multi Entry) but now need to list the number of Multi Entries per member.
[TABLE="width: 274"]
<tbody>[TR]
[TD]Member
[/TD]
[TD]Multi Entry
[/TD]
[TD]Record ID
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]TRUE
[/TD]
[TD]593
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]TRUE
[/TD]
[TD]1322
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]TRUE
[/TD]
[TD]594
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]TRUE
[/TD]
[TD]1323
[/TD]
[/TR]
[TR]
[TD]10921
[/TD]
[TD]FALSE
[/TD]
[TD]1131
[/TD]
[/TR]
[TR]
[TD]11010
[/TD]
[TD]FALSE
[/TD]
[TD]1132
[/TD]
[/TR]
[TR]
[TD]11106
[/TD]
[TD]FALSE
[/TD]
[TD]595
[/TD]
[/TR]
[TR]
[TD]11107
[/TD]
[TD]FALSE
[/TD]
[TD]596
[/TD]
[/TR]
[TR]
[TD]11287
[/TD]
[TD]FALSE
[/TD]
[TD]1133
[/TD]
[/TR]
[TR]
[TD]17081
[/TD]
[TD]FALSE
[/TD]
[TD]1144
[/TD]
[/TR]
[TR]
[TD]1711
[/TD]
[TD]FALSE
[/TD]
[TD]1107
[/TD]
[/TR]
[TR]
[TD]1712
[/TD]
[TD]FALSE
[/TD]
[TD]1108
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]TRUE
[/TD]
[TD]448
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]TRUE
[/TD]
[TD]1109
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]TRUE
[/TD]
[TD]449
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]TRUE
[/TD]
[TD]1110
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]TRUE
[/TD]
[TD]604
[/TD]
[/TR]
[TR]
[TD]17441
[/TD]
[TD]TRUE
[/TD]
[TD]605
[/TD]
[/TR]
[TR]
[TD]17441
[/TD]
[TD]TRUE
[/TD]
[TD]606
[/TD]
[/TR]
[TR]
[TD]17648
[/TD]
[TD]FALSE
[/TD]
[TD]1145
[/TD]
[/TR]
[TR]
[TD]17845
[/TD]
[TD]FALSE
[/TD]
[TD]607
[/TD]
[/TR]
[TR]
[TD]18139
[/TD]
[TD]FALSE
[/TD]
[TD]608
[/TD]
[/TR]
[TR]
[TD]18431
[/TD]
[TD]TRUE
[/TD]
[TD]609
[/TD]
[/TR]
[TR]
[TD]18431
[/TD]
[TD]TRUE
[/TD]
[TD]610
[/TD]
[/TR]
[TR]
[TD]18461
[/TD]
[TD]FALSE
[/TD]
[TD]1004
[/TD]
[/TR]
[TR]
[TD]1883
[/TD]
[TD]FALSE
[/TD]
[TD]993
[/TD]
[/TR]
[TR]
[TD]18863
[/TD]
[TD]FALSE
[/TD]
[TD]1005
[/TD]
[/TR]
[TR]
[TD]1924
[/TD]
[TD]FALSE
[/TD]
[TD]564
[/TD]
[/TR]
[TR]
[TD]19350
[/TD]
[TD]TRUE
[/TD]
[TD]611
[/TD]
[/TR]
[TR]
[TD]19350
[/TD]
[TD]TRUE
[/TD]
[TD]1327
[/TD]
[/TR]
[TR]
[TD]1945
[/TD]
[TD]FALSE
[/TD]
[TD]994
[/TD]
[/TR]
</tbody>[/TABLE]
The output I require is:
[TABLE="width: 274"]
<tbody>[TR]
[TD]Member
[/TD]
[TD]Multi Entry
[/TD]
[TD]Record ID
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]2
[/TD]
[TD]593
[/TD]
[/TR]
[TR]
[TD]10320
[/TD]
[TD]2
[/TD]
[TD]1322
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]2
[/TD]
[TD]594
[/TD]
[/TR]
[TR]
[TD]10918
[/TD]
[TD]2
[/TD]
[TD]1323
[/TD]
[/TR]
[TR]
[TD]10921
[/TD]
[TD]1
[/TD]
[TD]1131
[/TD]
[/TR]
[TR]
[TD]11010
[/TD]
[TD]1
[/TD]
[TD]1132
[/TD]
[/TR]
[TR]
[TD]11106
[/TD]
[TD]1
[/TD]
[TD]595
[/TD]
[/TR]
[TR]
[TD]11107
[/TD]
[TD]1
[/TD]
[TD]596
[/TD]
[/TR]
[TR]
[TD]11287
[/TD]
[TD]1
[/TD]
[TD]1133
[/TD]
[/TR]
[TR]
[TD]17081
[/TD]
[TD]1
[/TD]
[TD]1144
[/TD]
[/TR]
[TR]
[TD]1711
[/TD]
[TD]1
[/TD]
[TD]1107
[/TD]
[/TR]
[TR]
[TD]1712
[/TD]
[TD]1
[/TD]
[TD]1108
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]2
[/TD]
[TD]448
[/TD]
[/TR]
[TR]
[TD]1726
[/TD]
[TD]2
[/TD]
[TD]1109
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]3
[/TD]
[TD]449
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]3
[/TD]
[TD]1110
[/TD]
[/TR]
[TR]
[TD]1727
[/TD]
[TD]3
[/TD]
[TD]604
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
etc.