J
Juan
Hi everyone,
I have a form in which I want to filter by two combo boxes. one is working
fine, but the other one is not.
"Hrs Status" is a calculated control. Here is the control source =IIf([Total
Hrs]>=40,IIf([Estimated Hrs]>0,"Done/Unapproved","Done"),"Missing")
Here is the filter function:
Private Function BuildFilter() As Variant
BuildFilter = (" And [Project Administrator] = """ + Me.cboFilterPA + """")
& (" And [Hrs Status] = """ + Me.cboFilterHW + """") & ""
BuildFilter = Mid(BuildFilter, 6)
End Function
Here, "cboFilterHW" has a list of three values:
"Done";"Done/Unapproved";"Missing", which are the three options for "Hrs
Status". When I try to filter by this combo box, i get an input box, as if I
had misspelled the control name (which is not the case).
Does somebody have an idea of what the problem might be?
Thanks a lot!
I have a form in which I want to filter by two combo boxes. one is working
fine, but the other one is not.
"Hrs Status" is a calculated control. Here is the control source =IIf([Total
Hrs]>=40,IIf([Estimated Hrs]>0,"Done/Unapproved","Done"),"Missing")
Here is the filter function:
Private Function BuildFilter() As Variant
BuildFilter = (" And [Project Administrator] = """ + Me.cboFilterPA + """")
& (" And [Hrs Status] = """ + Me.cboFilterHW + """") & ""
BuildFilter = Mid(BuildFilter, 6)
End Function
Here, "cboFilterHW" has a list of three values:
"Done";"Done/Unapproved";"Missing", which are the three options for "Hrs
Status". When I try to filter by this combo box, i get an input box, as if I
had misspelled the control name (which is not the case).
Does somebody have an idea of what the problem might be?
Thanks a lot!