I have an access form that allow users to enter some data. for instance, they will enter a FileNo, date, FileName, etc. When they enter the file no I want vba code to see if that file no has already been used. If it has been used send a message back to the user that it has already been used and set the focus back to the FileNo text box so that they can enter another file no. This is not the primary key. I just don't want the user to be able to use the same fileNo more than once.