Hi Barbara.
>> Actually, I bet I know what you're going to say. <g> Have a property of the textboxclass called something like lGettingFocus. Change the code to:
if this.SelectOnEntry
this.lGettingFocus = .T.
Dodefault()
this.lGettingFocus = .F.
endif
And bracket your Valid code so it only runs if this.lGettingFocus is .F. Am I close? <bg> <<
Actually, having re-read your response, I was going to say that I was mistaken < g >. The DODEFAULT() will not cause the valid of the textbox to fire. I must be getting old. I read DODEFAULT() as SetFocus()! Don't ask me how, but I did. I must be working too hard.
Sorry about that!
Marcia