Hi,
I am having a blind moment on this problem and hoped someone can help.
I have a table that contains date specific events. I need to cycle through the records in the table and for each record update a field based on a stats calculation of data in the 6 previous records (date wise). So for instance if record 7 has a date of 31st january i need the 6 previous records - eg 28th, 16th, 12th, 10th, 5th, 1st.
I plan to handle the data manipulation in an array and have no problems on that side but for the life of me i can't seem to get my head around correctly selecting those 6 records.
Any pointers folks?
Thanks
Mike
I am having a blind moment on this problem and hoped someone can help.
I have a table that contains date specific events. I need to cycle through the records in the table and for each record update a field based on a stats calculation of data in the 6 previous records (date wise). So for instance if record 7 has a date of 31st january i need the 6 previous records - eg 28th, 16th, 12th, 10th, 5th, 1st.
I plan to handle the data manipulation in an array and have no problems on that side but for the life of me i can't seem to get my head around correctly selecting those 6 records.
Any pointers folks?
Thanks
Mike