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

Signature
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)
> Is it possible to use a string variable to refer to a control?
BrerGoose - 01 Oct 2007 20:16 GMT
Even shorter....Me(strControlName)
BrerGoose
Pieter Wijnen - 02 Oct 2007 02:52 GMT
and even more correct: Me.Controls(strControlName).Value
Pieter
> Dim strControlName As String
>
[quoted text clipped - 3 lines]
>
>> Is it possible to use a string variable to refer to a control?