which, if the maskedtextbox is empty will throw the error:
bDirty = bDirty Or CDate(txtRegExpiry.Text) <> IIf(IsNothing(.Reg_Expr), "", .Reg_Expr)
Conversion from string " / /" to type 'Date' is not valid.Note: It is the control (CDate(txtRegExpiry.Text))
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.