lookup window opens when an invalid code is entered.