Hello
I have a field (Clock in - Data Type = Short Text) where that tells me the date and time an employee clocked in, ex. 03/20/2022 8:16:34 AM. I created a field to extract the date
Code:
DateClockedIn: Format(left([Clock in],10),"General Date"
which returns 03/20/2022 * I have also tried mm/dd/yyyy where I have "General Date".
I then create another field
Code:
Flag: IIF([DateClockedIn] < #03/20/2022#,"True","")
. This field only returns "True" on fields where the month is March, it doesn't flag all other dates that were before March 20, 2022. I am convinced it's on how I extracted the date (I've always had trouble properly formatting dates when I extract them to read as an actual date).
Any ideas?