If you are trying to search for a payment by a project that is not an active one, you won't be able to do so. You can see the payments for only those projects that are marked as 'Active'. Just search for that payment based on other information though, say invoice number, etc.