Forum Discussion
Filter Form and Syntax
- Sep 28, 2024
Please confirm.
In a table, you have a field named [ExpiredYN], correct?
This field, [ExpiredYN], is configured as a combo box with a value list row source. The values in that value list are "Terminated";"Active", correct?
In that case, the expression posted should work with one small exception. There is an extra single quote shown in red here: & "' And ...
& "' And [ExpiredYN] = '" & Me!cboStatus & "'"
should be
& " And [ExpiredYN] = '" & Me!cboStatus & "'"
Please confirm.
In a table, you have a field named [ExpiredYN], correct?
This field, [ExpiredYN], is configured as a combo box with a value list row source. The values in that value list are "Terminated";"Active", correct?
In that case, the expression posted should work with one small exception. There is an extra single quote shown in red here: & "' And ...
& "' And [ExpiredYN] = '" & Me!cboStatus & "'"
should be
& " And [ExpiredYN] = '" & Me!cboStatus & "'"
- George_HepworthSep 29, 2024Silver ContributorYou are welcome. Continued success with your project.