kharpe wrote:
[Quoted Text] > I have a field labeled FCSI_Closed that is defined as a Yes/No field > that I would like to filter on a continuous form based on an option > group in the header of the form. There will be multiple option groups > to allow the user to filter the form based on various criteria. I > should be able to extrapolate the remaining option groups based on > the FCSI_Closed option group. The following is the code that I have > that the moment > > Select Case RegulatoryFilter > Case "1" > stCriteria = "FCSI_Closed = 'True'" > Case "2" > stCriteria = "[FCSI_Closed] = 'False'" > End Select > Me.Filter = stCriteria > Me.Filter = True > > I am getting a type mismatch. The stCriteria is defined as a string > as my understanding is that the Filter command requires a string input
True and False without single quotes. "True" and "False" are strings.
|