try using an input box instead. on the click event open the input box as parameter entry then open a recordest based on those criteria. Then check to see whether the recordset is empty. oif it is the invoiceID doesnt exist.
Dim tempInteger As integer
Dim rst As recordset
Dim str As string...