I couldn't get this to work the way you wrote it. Then I realized that I wanted to test the data that was entered, not just avoid a Null. When I changed the IsNull (txtLogID)= True to a different test, len(txtLogID)<>6, and I entered data in the field, it worked fine. It still dosen't allow...