Bombshell Disaster
Registered User.
- Local time
- Today, 06:50
- Joined
- Nov 21, 2007
- Messages
- 32
Hi Guys
Can you help with the criteria for filtering a list box with date ranges on a form.
Form1 has a list box with multiple fields, one of the fields is an invoice date, in Column(2).
Form1 has two unbound text boxes: txtStartDate and txtEndDate. Also one of the options buttons that selects filtering by Date Range optDateRange.
After optDateRange has got focus txtStartDate and txtEndDate will have the default date of today. I then want to filter the list box on invoice date between txtStartDate and txtEndDate. I will also add another AfterUpdate event to the txtEndDate to filter the list box if the txtEndDate changes.
Please can you help with the code for filtering the list box between dates.
Many thanks.
Can you help with the criteria for filtering a list box with date ranges on a form.
Form1 has a list box with multiple fields, one of the fields is an invoice date, in Column(2).
Form1 has two unbound text boxes: txtStartDate and txtEndDate. Also one of the options buttons that selects filtering by Date Range optDateRange.
After optDateRange has got focus txtStartDate and txtEndDate will have the default date of today. I then want to filter the list box on invoice date between txtStartDate and txtEndDate. I will also add another AfterUpdate event to the txtEndDate to filter the list box if the txtEndDate changes.
Please can you help with the code for filtering the list box between dates.
Many thanks.