Thanks for that. That is certainly what I want. However, as the Add New Invoice form is a pop up form, it stays on top, whilst the form showing the duplicated invoice is behind it. Is there perhaps some code to make the Add New Invoice close after I have hit the OK button on the warning box that...