Steve DeWeese
New Member
I have a user form that I put together by modifying a tutorial. The user form has 27 inputs that are either text boxes or combo boxes. The tutorial combines the first name and last name boxes into a full name box, so I tried to use that same approach to combine a couple of other boxes. I am trying to combine a combo box named Reg6 with a combo box named Reg14 and a combo box named Reg13. I don't want any spaces between these values and I would like the result to populate a text box named Reg27. For example:
Reg6 contains 9, Reg14 contains CLSS and Reg13 contains 1.5 I would like Reg27 to populate with 9CLSS1.5 prior to adding everything to the database. The code I modified works fine for first and last name. That code is
[Private Sub Reg2_Change()
'get full name
Me.Reg3.Value = Me.Reg2.Value + " " + Me.Reg1.Value
End Sub]
In the above example Reg1 contains the last name, Reg2 the first name, Reg3 automatically populates with the full name
I modified with the following but can't get it to work. I tried switching around the different box names in the Private Sub line and can get 2 out of 3 to populate but never all 3.
[Private Sub Reg14_Change()
'get the classification
Me.Reg27.Value = Me.Reg6.Value + Me.Reg14.Value + Me.Reg13.Value
End Sub]
Thank you,
Steve
Reg6 contains 9, Reg14 contains CLSS and Reg13 contains 1.5 I would like Reg27 to populate with 9CLSS1.5 prior to adding everything to the database. The code I modified works fine for first and last name. That code is
[Private Sub Reg2_Change()
'get full name
Me.Reg3.Value = Me.Reg2.Value + " " + Me.Reg1.Value
End Sub]
In the above example Reg1 contains the last name, Reg2 the first name, Reg3 automatically populates with the full name
I modified with the following but can't get it to work. I tried switching around the different box names in the Private Sub line and can get 2 out of 3 to populate but never all 3.
[Private Sub Reg14_Change()
'get the classification
Me.Reg27.Value = Me.Reg6.Value + Me.Reg14.Value + Me.Reg13.Value
End Sub]
Thank you,
Steve