I am constantly running into this issue for this code:
Dim strJulianDate As Long
'Verify Julian Date is entered
If Len(strJulianDate) <> 3 Then
MsgBox "Enter Valid Julian Date", vbOkOnly, "Invalid Entry"
Forms!Form1!JulianDate.SetFocus
Exit Sub
Else
strJulianDate = Forms!Form1!JulianDate
End If
And it keeps giving me the MsgBox even if i have 3 digits entered. Reason I have Exit Sub is that there are more text boxes to validate after this one. If I didn't have it, it'd go through the other text boxes as well. I don't want to run this via the Validation Rule, as sometimes users need to clear the textboxes and the Validation rule prevents this. Any ideas?