I have 2 fields: "checkmark_1" & "days_to_mark"
In "checkmark_1" field i have row equation: function_mark( [days_to_mark] )
In "days_to_mark" field i have list of weekday names
"function_mark" code:
Function function_mark(to_mark_field)
Dim today_date
today_date = WeekDayName(WeekDay(Now()))
If InStr(to_mark_field, today_date) <> 0 Then
mark_to_show_habits = -1
else
mark_to_show_habits = 0
End If
End Function
Dim today_date
today_date = WeekDayName(WeekDay(Now()))
If InStr(to_mark_field, today_date) <> 0 Then
mark_to_show_habits = -1
else
mark_to_show_habits = 0
End If
End Function
Now everything works well, but row equation is not refreshed every day I need to do it manually.
Anyone could tell me what's wrong with my setup?
Thanks!
Comments
today_date = WeekDayName(WeekDay(Now()))
If InStr(to_mark_field, today_date) <> 0 Then
mark_to_show_habits = -1
else
mark_to_show_habits = 0
End If
End Function
Dim today_date
today_date = WeekDayName(WeekDay(Now()))
If InStr(to_mark_field, today_date) <> 0 Then
mark_to_show_item = -1
else
mark_to_show_item = 0
End If
End Function