Jumat, 24 Februari 2012

[MS_AccessPros] Filter list box by combo

 

I have a list box called lstAppointments and I would like to filter it by using a combobox called cboTimePeriods. I am using the following values in the combobox.

1;"This week";2;"Next two weeks";3;"This month";4;"This quarter";5;"This calendar year";6;"Next 12 months";7;"All appointments"

This is recordsource for the lisbox:
SELECT [tblAppointments].[AppointmentID], [tblAppointments].[AppointmentDate], [tblAppointments].[AppointmentDesc] FROM tblAppointments;

What would I need to do to get the filter working?

Thanks,

Art Lorenzini
Sioux Falls, SD

__._,_.___
Recent Activity:
.

__,_._,___

Tidak ada komentar:

Posting Komentar