DavG63
01-28-2016, 09:13 AM
I have a userform at the moment with two comboboxes for (i) address and (i) zip code.
ComboBox1 is the address - "1 Street Name, Town"
ComboBox2 is the zip code - "77048"
I have to keep them apart as they appear at different points throughout the document sometimes together and sometimes not.
I was hoping to be able to put a checkbox beside the two comboboxes which when checked would copy the values of both ComboBoxes into another ComboBox for the billing address.
Can anyone help me work out how to take the values of ComboBox1 and ComboBox2 and combine them to display in ComboBox3 if CheckBox1 is checked so that it reads "1 Street Name, Town, 77048"? i.e.
If Me.CheckBox1.Value = True Then
Me.CheckBox3.Value = Me.CheckBox1 + Me.CheckBox2
Obviously this won't work with text and it also has to put a comma in before the zip code and then leave a space for the formatting to work properly, but I'm a little stuck as to how to do it.
Any assistance would be gratefully received.
Thanks
ComboBox1 is the address - "1 Street Name, Town"
ComboBox2 is the zip code - "77048"
I have to keep them apart as they appear at different points throughout the document sometimes together and sometimes not.
I was hoping to be able to put a checkbox beside the two comboboxes which when checked would copy the values of both ComboBoxes into another ComboBox for the billing address.
Can anyone help me work out how to take the values of ComboBox1 and ComboBox2 and combine them to display in ComboBox3 if CheckBox1 is checked so that it reads "1 Street Name, Town, 77048"? i.e.
If Me.CheckBox1.Value = True Then
Me.CheckBox3.Value = Me.CheckBox1 + Me.CheckBox2
Obviously this won't work with text and it also has to put a comma in before the zip code and then leave a space for the formatting to work properly, but I'm a little stuck as to how to do it.
Any assistance would be gratefully received.
Thanks