Hi,
I did a search on this form about this problem but couldn't find a relevant thread.
I have a database that contains a date field (day-month-year).
I would like to add an element to the search options. 'two' date input fields (each of them has 3 comboboxes day-month-year).
if both are filled out search all records between the two input dates. if only the first input field has been filled out search all records till this date. If only the last input field has been filled out search all records from this date till now.
I can only think of an ugly way and create an if-statements (check year>check month>check day>true) for each input field. And then match the two.
Is this the way to go or does anybody know a more direct and elegant way to do this?
regards,
Ron
I did a search on this form about this problem but couldn't find a relevant thread.
I have a database that contains a date field (day-month-year).
I would like to add an element to the search options. 'two' date input fields (each of them has 3 comboboxes day-month-year).
if both are filled out search all records between the two input dates. if only the first input field has been filled out search all records till this date. If only the last input field has been filled out search all records from this date till now.
I can only think of an ugly way and create an if-statements (check year>check month>check day>true) for each input field. And then match the two.
Is this the way to go or does anybody know a more direct and elegant way to do this?
regards,
Ron