Hi
I have a list box setup with all the dates from 01/10/05 to 31/12/08.
I want to always start the list box at the current date while still allow the functionality to backdate if required.
I have used the undernoted code to set the row correctly but I cannot figure how to get the box to scroll down to the correctly selected row.
Any ideas?
JC
I have a list box setup with all the dates from 01/10/05 to 31/12/08.
I want to always start the list box at the current date while still allow the functionality to backdate if required.
I have used the undernoted code to set the row correctly but I cannot figure how to get the box to scroll down to the correctly selected row.
Code:
Dim i As Long
i = DLookup("ID", "tblIMDates", "cdate([Date])=date()") - 1
Me.lstDates.Selected(i) = True
Any ideas?
JC