I have a date picker field, a text field and an exit button on my userform.
I have coded some validation in the exit event of the text field which works as expected except when I click on the drop down arrow of my date picker control. Although I get my validation message OK it still insists on causing the calendar part of the date picker control to appear even though I have a cancel=true and textbox1.setfocus statements in my textbox validation routine. My other problem is that the textbox validation also fires when I click on my exit button even though I have its getfocusonclick property to false. Any help on these two problems is much appreciated.
I have coded some validation in the exit event of the text field which works as expected except when I click on the drop down arrow of my date picker control. Although I get my validation message OK it still insists on causing the calendar part of the date picker control to appear even though I have a cancel=true and textbox1.setfocus statements in my textbox validation routine. My other problem is that the textbox validation also fires when I click on my exit button even though I have its getfocusonclick property to false. Any help on these two problems is much appreciated.