D
delgado92651
Straight forward filter with a combo box, the combo has three fields;
ID, Min & Max, how do I know I'm using the correct field to filter by?
I would like to filter by the Min value. Form won't filter at all. I
filering on a currency filter.
I've also tried this, get a error msg "Not bound to form"
The sub form being filtered, frmCat, and the combo box, cbcAssetRange,
are in the detail section of the main form, frmMain.
Al
ID, Min & Max, how do I know I'm using the correct field to filter by?
I would like to filter by the Min value. Form won't filter at all. I
filering on a currency filter.
Code:
Private Sub cbcAssetRange_AfterUpdate()
Me.Filter = "YTD = " & Me.cbcAssetRange
Me.FilterOn = True
End Sub
I've also tried this, get a error msg "Not bound to form"
Code:
Private Sub cbcAssetRange_AfterUpdate()
'DoCmd.ApplyFilter "SELECT Categories.* FROM Categories WHERE YTD =
Forms!frmMain!cbcAssetRange"
'Me.cbcAssetRange = ""
End Sub
The sub form being filtered, frmCat, and the combo box, cbcAssetRange,
are in the detail section of the main form, frmMain.
Al