Hi,
I'm having some issues making my if statement properly read the input from the check boxes I have set up.
I have 2 checkboxes set up in my form. One is "chkOverdue" and the other is "chkOnTime".
This is the code I'm using:
Code:
If Me.chkOnTime = -1 And Me.chkOverdue = 0 Then
tempOnTime = " AND [DatetobeClosed]>Date()"
ElseIf Me.chkOnTime = 0 And Me.chkOverdue = -1 Then
tempOnTime = " AND [DatetobeClosed]<=Date()"
Else
tempOnTime = ""
End If
I've also tried using True (in place of -1) and False (in place of 0) and that doesn't work either. Regardless of what combination is checked off on the checkboxes, the code always goes to the else statement.
Thanks