I have a query that needs to pull values from different fields depending on the day of the week. I have tried this, but it just gives me a -1 in the query as the answer. I am sure that I am not doing it right, but can someone show me the correct way or a better one? Thanks!
Exp: Switch(([Weekday]="Monday"
,(TimeValue(Left([Schedules]![Monday],5))),([Weekday]="Tuesday"
,(TimeValue(Left([Schedules]![Tuesday],5)))) Or Switch(([Weekday]="Wednesday"
,(TimeValue(Left([Schedules]![Wednesday],5))),([Weekday]="Thursday"
,(TimeValue(Left([Schedules]![Thursday],5)))) Or Switch(([Weekday]="Friday"
,(TimeValue(Left([Schedules]![Friday],5))),([Weekday]="Saturday"
,(TimeValue(Left([Schedules]![Saturday],5)))) Or Switch(([Weekday]="Sunday"
,(TimeValue(Left([Schedules]![Sunday],5))))
Exp: Switch(([Weekday]="Monday"