Hi,
I have two tables (MSFlexGrid1 & MSFlexGrid2). MSFlexGrid2 contains data of Date, Time, Water Level, Volume, and Area. Some of the Date are the same in which the data are taken at different times of the same date. What I need here is that the average of the Water level, Volume, and Area data of the same date to be filled in the other table, MSFlexGrid1. The table should contain data of Date and the average of Water level, Volume, and Area of the same date from MSFlexGrid2. I already get the unique value of the date to be filled in MSFlexGrid1, with help from a helpful friend in Bytes, but I do not manage to get the average of those values sharing the same date.
Attached is the program i have so far. There are two command buttons on the first form, Sort and Next. Click Sort button to sort the data according to the date, and Next button to go to the next form, Form2. After select the From Date and To Date, the selected data should appear in both grids, MSFlexGrid2 and MSFlexGrid1.
Thank you in advance.
I have two tables (MSFlexGrid1 & MSFlexGrid2). MSFlexGrid2 contains data of Date, Time, Water Level, Volume, and Area. Some of the Date are the same in which the data are taken at different times of the same date. What I need here is that the average of the Water level, Volume, and Area data of the same date to be filled in the other table, MSFlexGrid1. The table should contain data of Date and the average of Water level, Volume, and Area of the same date from MSFlexGrid2. I already get the unique value of the date to be filled in MSFlexGrid1, with help from a helpful friend in Bytes, but I do not manage to get the average of those values sharing the same date.
Attached is the program i have so far. There are two command buttons on the first form, Sort and Next. Click Sort button to sort the data according to the date, and Next button to go to the next form, Form2. After select the From Date and To Date, the selected data should appear in both grids, MSFlexGrid2 and MSFlexGrid1.
Thank you in advance.
Comment