If your intent is to allow 8 or less characters in the field the answer is really very elementary; in Design View of the underlying table enter 8 as the field size. Access will then only allow a maximum 8 characters to be entered.
If you have to have exactly 8 characters in the field, change the first line of nathan1967's code to If Len(Text0) < 8 Then and change the message to suit.
Hope this helps.
The Missinglinq
"It's got to be the going,
not the getting there that's good!"
-Harry Chapin