G
Guest
I'm sorry for reposting but no one's been able to help me with my struggle.
With the code below I want to filter my lstBox to narrow down the records
the user sees in the list. I try to accomplish with a command button
(cboFilterSupplies) on the form where the list resides, with the code below.
Problem is, when cboFilterSupplies is clicked, the lstBox goes blank. I've
double checked everything but it still doesn't work. I've even gone into the
rowsource query and manually set the criteria to "SA" OR "SAD", and it works
there. Just not with the code below.
Any help would be greatly appreciated. Rob
*******************************************************
Private Sub cboFilterSupplies_Click()
Me.lstChargeMaster.RowSource = "SELECT * FROM table WHERE fldChargeTypeCode
= '" & "SA" & "'"
End Sub
With the code below I want to filter my lstBox to narrow down the records
the user sees in the list. I try to accomplish with a command button
(cboFilterSupplies) on the form where the list resides, with the code below.
Problem is, when cboFilterSupplies is clicked, the lstBox goes blank. I've
double checked everything but it still doesn't work. I've even gone into the
rowsource query and manually set the criteria to "SA" OR "SAD", and it works
there. Just not with the code below.
Any help would be greatly appreciated. Rob
*******************************************************
Private Sub cboFilterSupplies_Click()
Me.lstChargeMaster.RowSource = "SELECT * FROM table WHERE fldChargeTypeCode
= '" & "SA" & "'"
End Sub