Combo0 holds text, the caption names.
Actually that did it. I dunno why I had so much trouble. Thanks for sticking with me Here's the code
Code:
Private Sub Combo0_Change()
Dim ctl As Object
For Each ctl In Form_frmMain.SubDisplay.Controls
With ctl
If .ControlType = acTextBox Then
If .Controls(0).Caption = Me.Combo0 Then Contents = .Value
End If
End With
Next
End Sub
Private Sub Form_Load()
DoCmd.MoveSize 10000, 8000, 9000, 6000
Me.Caption = "Move Field Contents"
Dim fb
Dim ctl As Object
For Each ctl In Form_frmMain.SubDisplay.Controls
If ctl.ControlType = acTextBox Then
fb = ctl.Controls(0).Caption
If InStr(fb, ":") = 0 Then
Combo0.AddItem fb
Combo1.AddItem fb
End If
End If
Next
CurrRow = Form_frmMain.SubDisplay!Opus
Contents = Form_frmMain.SubDisplay.Form.ActiveControl
Combo0 = Form_frmMain.SubDisplay.Form.ActiveControl.Controls(0).Caption
End Sub
Context is a text box holding the values in the Combo0 field.