How is this done and how do I obtain the name and type of the control.
By type I mean say label or text etc.
Tools... Analyze... Documentor will do it; or you can loop through the
Form's Controls collection. There are VBA constants for each control
type - they're not terribly intuitive though! You may need to use an
expression like
Dim iType As Integer
Dim sType As String
Dim ctl As Control
For Each ctl In Me.Controls
iType = ctl.Properties("ControlType")
sType = Switch(iType = acTextbox, "Textbox", _
iType = acLabel, "Label", _
iType = acCheckbox, "Checkbox", _
<and so on>
Debug.Print ctl.Name, sType
Next ctl
John W. Vinson[MVP]