I have two columns ImportDateOn and InventoryDate in the table [tbl E&O Main]. I create a combo box to navigate ImportDateOn and a list box to display InventoryDate. When I click on my combo box and the list box for InventoryDate should be filtered automatically. I set an AfterUpdate() event on the combo box as following:
Private Sub DateSelector_AfterUpdate()
Forms![CtrlPanel]!InventoryDateList.Value = Null
Forms![CtrlPanel].Requery
Forms![CtrlPanel].Refresh
End Sub
Then in the datasource for the list box , my code is as following
SELECT [tbl E&O Main].InventoryDate
FROM [tbl E&O Main]
WHERE [tbl E&O Main].ImportDateOn=Forms![CtrlPanel]![DateSelector].[value]
GROUP BY [tbl E&O Main]!InventoryDate;
Please advise why the list box doesn't go with the combo box selection.

Me.InventoryDateList.Requery- BitAccesserPrivate Sub DateSelector_AfterUpdate(), but requerys the listbox. See and accept Chris answer. - BitAccesser