Date Picker - current date
Hellow again,
I searched on datepicker or some searchkeywords like that, but didn't found anything of an answer which i could use, so please advise if you want:
Information:
1) in the db are two fields (begindate and enddate)
2) in my form are four DTPicker fields (begindate_from, begindate_to, enddate_from, enddate_to)
3) user is allowed to leave the enddate DTPicker fields blank
The enddate can be filled with information or not
The begindate is always filled with information
problem description:
on 3) i have a couple of questions:
a) how to leave the DTPicker fields for the enddate blank
(aa or..if possible, maybe a checkbox to de-activate the two dtpickerfields for the enddate)
b) how to finally use this blank field or unchecked dtpicker fields in the query.
Situation now:
In query:
field: Begindate:
field: enddate
The part IsNull([enddate]) is of course not used, because in my form the two fields (enddate from and enddate to) are always filled...
Question?
How to....
Thanks in advance for your answers/reactions!
Hellow again,
I searched on datepicker or some searchkeywords like that, but didn't found anything of an answer which i could use, so please advise if you want:
Information:
1) in the db are two fields (begindate and enddate)
2) in my form are four DTPicker fields (begindate_from, begindate_to, enddate_from, enddate_to)
3) user is allowed to leave the enddate DTPicker fields blank
The enddate can be filled with information or not
The begindate is always filled with information
problem description:
on 3) i have a couple of questions:
a) how to leave the DTPicker fields for the enddate blank
(aa or..if possible, maybe a checkbox to de-activate the two dtpickerfields for the enddate)
b) how to finally use this blank field or unchecked dtpicker fields in the query.
Situation now:
In query:
field: Begindate:
Code:
between [forms]![mainform]![begindate_from) AND [forms]![mainform]![begindate_to]
field: enddate
Code:
Isnull([enddate] OR
between [forms]![mainform]![enddate_from) AND [forms]![mainform]![enddate_to]
The part IsNull([enddate]) is of course not used, because in my form the two fields (enddate from and enddate to) are always filled...
Question?
How to....
Thanks in advance for your answers/reactions!
Last edited: