strMyString = the name of the text box

B

Bill

How do I create a string expression based on
whatever textbox currently has the focus?

I.e., strMyString = the name of the text box that currently has the focus

Bill
 
J

John Nurick

Hi Bill,

Screen.ActiveControl.Name
or
Screen.ActiveControl.Value
or
Screen.ActiveControl.Text
depending what you want to do.
 
B

Bill

I used Tom's expression. And, since it worked perfectly
the first time and subsequently elsewhere, I didn't try the
other two offered by Duane and John.
Bill
 
Top