I have a command Button on a form, when cliked will bring up a calender, when the calender is displayed a date has to be selected. For some reason if a date is not selcted and you press the 'Esc' key or the 'x' to close the calender the current date is taken as being the selected date and saved in table, i don't want this to happen, when either of those keys are pressed i want the detec and close the calender down. without anything being saved. Any ideas?