Good Day,
I have two sets of tables. The input from the tables is imported from data loggers and based on time. The one table is straight forward with time running on a 24 hour cycle. The other one only record useful data when the system is in service.
I have to report the time at three different times and change the input in one a different column depending on specific times.
The one column can be either a Tx or a Vx depending if it is time reported or a value reported eg.
Column A Coulumn B (time)
T1 or V1 8:00
T2 or V2 12:00
T3 or V3 16:00
I do not have a problem get the required result. My question lies with the second table. Keeping the same times but now the operation only starts at say 11:00 and ends at 17:00. If I use the same iif statement I used for the first table the result will be
Column A Column B (time)
T2 or V2 12:00
T3 or V3 16:00
Instead of
Column A Column B (time)
T1 or V1 12:00
T2 or V2 16:00
How can I set the query so it first check if there was a reading on a specific date for 8:00? If yes the V1 or T1 for 8:00 and if not, then T1 = 12:00
Thank you for your time.
Hennie
I have two sets of tables. The input from the tables is imported from data loggers and based on time. The one table is straight forward with time running on a 24 hour cycle. The other one only record useful data when the system is in service.
I have to report the time at three different times and change the input in one a different column depending on specific times.
The one column can be either a Tx or a Vx depending if it is time reported or a value reported eg.
Column A Coulumn B (time)
T1 or V1 8:00
T2 or V2 12:00
T3 or V3 16:00
I do not have a problem get the required result. My question lies with the second table. Keeping the same times but now the operation only starts at say 11:00 and ends at 17:00. If I use the same iif statement I used for the first table the result will be
Column A Column B (time)
T2 or V2 12:00
T3 or V3 16:00
Instead of
Column A Column B (time)
T1 or V1 12:00
T2 or V2 16:00
How can I set the query so it first check if there was a reading on a specific date for 8:00? If yes the V1 or T1 for 8:00 and if not, then T1 = 12:00
Thank you for your time.
Hennie