I am in need of a formula or expression to run a comparison of a field in different records but from the same table. I want to select a record from my "WeighIn" table and then have its "weight" column compared to the "weight" column in the most recent record that is also the first record recorded that day that is not also the record initially selected.
If players only weighed in once a day then it would be easy, but some players weigh in twice a day and some 3 times a day. That is where my problem arises.
For example, Joe weighs in 3 times each day. Yesterday he weighed in at 8am 1030am and 4pm. Today he weighed in once at 8am, once at 11am and once at 2pm. In the "weighIn" table I have recorded his PlayerID, his Weight and TheDate. The comparison formula would then take today's 8am and compare it to yesterdays 8am, today's 11am would be compared to today's 8am, today's 2pm would also be compared to today's 8am.
If players only weighed in once a day then it would be easy, but some players weigh in twice a day and some 3 times a day. That is where my problem arises.
For example, Joe weighs in 3 times each day. Yesterday he weighed in at 8am 1030am and 4pm. Today he weighed in once at 8am, once at 11am and once at 2pm. In the "weighIn" table I have recorded his PlayerID, his Weight and TheDate. The comparison formula would then take today's 8am and compare it to yesterdays 8am, today's 11am would be compared to today's 8am, today's 2pm would also be compared to today's 8am.