Under what conditions do you want TxtToDate to change?
>i have a txtfrdate and txttodate in my form. i want to set txttodate.value when txtfrdate loses focus. so in txtfrdate.lostfocus() i do,
>
>
thisform.txttodate.value=thisform.txtfrdate.value
>
>this works fine.
>
>i enter 05/21/2004 in txtfrdate, but at txttodate, when i type only upto 05/24 .......... and press my save button......... txttodate changes to the value of txtfrdate.
>
>how can i avoid this? both textboxes are set initially to date().
>
>pls help. TIA.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)