You have several alternatives:
(1) Test the length of what's been entered with the Len function. You'll get an error for inputting more characters in the field.
(2) Use the KeyPress event to count the characteres entered, character by character.
(3) Use the Validation Rule property for the field in the underlying table.
(4) Use the Validation Rule property for the form field.