The Accpac Macros got a problem

I have customization of AP Payment made from VBA.  when the user changes the payment day,  they select a date earlier than the acceptable range date, so as we know there is a warning message,  but whatever user click Yes or No.

Warning message

unknown error message.