You can add a recordset to the page to get the mindate and maxdate and then use the bindings panel to set the value on the page from the recordset in place of the manual code you have already added. 
I already tried this, but keep in mind that this should occur on the same page without reloading it.
How can I get the selected value after selecting an item from a dropdown menu populated by a recordset and use it on the same page without reloading?
Do this need ajax in any way?
TIA
tony


