Using a variable to refer to a control

D

Douglas J. Steele

Dim strControlName As String

strControlName = "txtField1"
MsgBox "The content of " & strControlName & _
" is " & Me.Controls(strControlName)
 
Top