K
Kjell Harnesk
I have a form with 3 controls involved in my problem.
Let's call them "UseDdates" this is a checkbox and two date-controls
"Stardate" and "Enddate".
In the query by design window I want to use the date-field of my query to
limit to start- and enddates
if the chechbox is checked. If not checked I want to use all dates.
I have tried a trillion of combinations like:
iif(myform.UseDates=-1; between myform.startdate and myform.enddate;between
#1900-01-01# and #2030-01-01#)
Can't get it to work, I would appreciate help on this problem.
Let's call them "UseDdates" this is a checkbox and two date-controls
"Stardate" and "Enddate".
In the query by design window I want to use the date-field of my query to
limit to start- and enddates
if the chechbox is checked. If not checked I want to use all dates.
I have tried a trillion of combinations like:
iif(myform.UseDates=-1; between myform.startdate and myform.enddate;between
#1900-01-01# and #2030-01-01#)
Can't get it to work, I would appreciate help on this problem.