I have a query with the Field [FirstVisitDate]. I want to drive this query from a form and have created an unbound Field on my form called [StartDate].
In my query design, I can easily put something like > Forms![MyForm]![StartDate] to return all records with a [FirstVisitDate] greater than the value entered in [StartDate]. However I don't just want a static value here and I want to be able to choose values say less than the date selected or more than the date selected or indeed all records regardless of the value in [Startdate].
I've created an unbound combo box field on my form with a ValueList RowSource of
1;New Clients;2;Pre-Existing Clients;3;All Clients;
So if:
1 is selected I only want records with a [FirstVisitDate] that is greater than the value on my form in [StartDate]
2 is selected I only want records with a [FirstVisitDate] that is less than than the value on my form in [StartDate]
3 is selected I want all records returned.
How can I string all of this together or am I going about this the wrong way. So many ways to skin the cat...
In my query design, I can easily put something like > Forms![MyForm]![StartDate] to return all records with a [FirstVisitDate] greater than the value entered in [StartDate]. However I don't just want a static value here and I want to be able to choose values say less than the date selected or more than the date selected or indeed all records regardless of the value in [Startdate].
I've created an unbound combo box field on my form with a ValueList RowSource of
1;New Clients;2;Pre-Existing Clients;3;All Clients;
So if:
1 is selected I only want records with a [FirstVisitDate] that is greater than the value on my form in [StartDate]
2 is selected I only want records with a [FirstVisitDate] that is less than than the value on my form in [StartDate]
3 is selected I want all records returned.
How can I string all of this together or am I going about this the wrong way. So many ways to skin the cat...