Here is one way of doing it.
Use the Before Update event of the txtbox you are using for the entry:
Private Sub YourTextBox_BeforeUpdate(Cancel As Integer)
Dim strMsg As String, strTitle As String
strMsg = "This Entry Must be a 7 Digit Numeric Value."
strTitle = "Date Entry Error"
If Len(Me.ActiveControl) <> 7 Or Not IsNumeric(Me.ActiveControl) Then
MsgBox strMsg, vbInformation + vbOKOnly, strTitle
Cancel = True
End If
End Sub
HTH
RDH
[This message has been edited by R. Hicks (edited 08-31-2000).]