How to allow to enter a 3 digit code to a table?