Can any one tell/show me how to reference an elemetn of a control array from inside the controls collection here is what i want to to but it does not work as it requires the index to work out which coltrol to access
For intCounter = 0 To Me.Controls.Count
Set c = Me.Controls(intCounter)
If TypeName(c) = "TextBox" Then
frmRecords.Controls(c.Name).Text = c.Text
ElseIf TypeName(c) = "OptionButton" Then
frmRecords.Controls(c.Name).Value = c.Value
End If
Next
Help!
For intCounter = 0 To Me.Controls.Count
Set c = Me.Controls(intCounter)
If TypeName(c) = "TextBox" Then
frmRecords.Controls(c.Name).Text = c.Text
ElseIf TypeName(c) = "OptionButton" Then
frmRecords.Controls(c.Name).Value = c.Value
End If
Next
Help!