Dim ctlControl As Control
For Each ctlControl In Form1
If TypeName(ctlControl) = "TextBox" And _
ctlControl.Name = sMyTextBoxName Then
ctlControl.SetFocus
Exit For
End If
End If
Next
Casper
There is room for all of gods creatures, "Right Beside the Mashed Potatoes".
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'If we're supposed to work in Hex, why have we only got A fingers?'
Yep, the FAQ is misguided (and merely a god example of someone copying something they read on the internet and assuming it was correct). EbExecuteLine is very, very unreliable in compiled programs. However, we've discussued this issue on numerous occassions in this forum, and provided examples of relatively simple alternatives.
And for this specific case it is really, really simple...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.