SystemAdmin4
5 years agoQrew Member
Next and Previous Record IDs based on derived sort
Hi.
Table A contains circa 1000 constantly changing records.
The order of records in this table (for various purposes) is determined by a sort field B (numeric formula based upon a couple of other fields).
Just being able to report the records in the right order in a report is not sufficient.
I need each record to 'know' the record ID of its predecessor record and successor record (based upon the sort field).
I've tried everything I can think of to do this (reverse looks to a master record etc), but can't work it out.
Sure I've seen a solution to something like this in a previous post based upon creating a connected table, but cannot find the post and I'm now pulling my hair out, having tried everything I can think of (reverse lookups - master parent etc).
No doubt I'm missing something obvious!
A nudge in the right direction would be massively appreciated!
Thanks
David
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------
Table A contains circa 1000 constantly changing records.
The order of records in this table (for various purposes) is determined by a sort field B (numeric formula based upon a couple of other fields).
Just being able to report the records in the right order in a report is not sufficient.
I need each record to 'know' the record ID of its predecessor record and successor record (based upon the sort field).
I've tried everything I can think of to do this (reverse looks to a master record etc), but can't work it out.
Sure I've seen a solution to something like this in a previous post based upon creating a connected table, but cannot find the post and I'm now pulling my hair out, having tried everything I can think of (reverse lookups - master parent etc).
No doubt I'm missing something obvious!
A nudge in the right direction would be massively appreciated!
Thanks
David
------------------------------
dmlaycock2000 dmlaycock2000
------------------------------