I have a table that has seven fields . each field is the name of the day of the week starting with Sunday. Each field has a different value of time covered. Example , Sunday has 8 hours , Monday - Thursday has 24 and the rest of the days have 10 hours.
I need to get a result in a query of the number of covered hours depending on what day the query runs. Example, if the query was ran on Sunday the result would be 8, if it is ran on Monday the result would be 24 or if it was ran on Friday the result would be 10.
I have a query that shows me the day of the week which I got by this expression
Then I have each field (Day) from my table list in the same query. but now I am stuck. I am not sure where to go from here.
My table name is SysCoveredHours and a few of my field names are Monday, Tuesday, Wednesday......
How do I get the number of hours covered from any field of my table for the day that the query is ran?
Struggling here.
Thanks
I need to get a result in a query of the number of covered hours depending on what day the query runs. Example, if the query was ran on Sunday the result would be 8, if it is ran on Monday the result would be 24 or if it was ran on Friday the result would be 10.
I have a query that shows me the day of the week which I got by this expression
Code:
Expr1: Weekday(Now())
Then I have each field (Day) from my table list in the same query. but now I am stuck. I am not sure where to go from here.
My table name is SysCoveredHours and a few of my field names are Monday, Tuesday, Wednesday......
How do I get the number of hours covered from any field of my table for the day that the query is ran?
Struggling here.
Thanks