jmbcreative
Technical User
I have information show up in a subform on my main form when I select a value from my combo box on my main form. I need information from the fields in the subform to input into a field on my main form when I select a value in another combo box. How can I do this?
I am using the following code, but for some reason it is not working.
Private Sub Combo42_Click()
If Combo42.Value = "Relocate" Then
Dim relocateMsg2 As Integer
relocateMsg2 = MsgBox("Move all Components?", vbYesNoCancel + vbQuestion, "Test Message")
If relocateMsg2 = 6 Then
Me.ADDHardware.Value = Form_HardwareListcomponentsQuerysubform.ControlID.Value
ElseIf testMsg2 = 7 Then
Else
End If
End If
End Sub
I am using the following code, but for some reason it is not working.
Private Sub Combo42_Click()
If Combo42.Value = "Relocate" Then
Dim relocateMsg2 As Integer
relocateMsg2 = MsgBox("Move all Components?", vbYesNoCancel + vbQuestion, "Test Message")
If relocateMsg2 = 6 Then
Me.ADDHardware.Value = Form_HardwareListcomponentsQuerysubform.ControlID.Value
ElseIf testMsg2 = 7 Then
Else
End If
End If
End Sub