RP1America
Technical User
I am creating multiple userforms which run in succession of which the entries will populate one letter.
My third userform needs to call on a value chosen from the second userform. On top of that, I need that value to be Dim'd as String in the third userform. Any ideas?
Portion of current code that does not work. I got the idea of Form.FormName.cboBox from someone, yet it doesn't seem to work for me. What do I have wrong?
annuitantinfo = userform
annuitantsal = combo box
__________________________
Dim strsex2 As String
If form.annuitantinfo.annuitantsal = "Mr." Then strsex2 = "his"
If form.annuitantinfo.annuitantsal = "Mrs." Then strsex2 = "her"
If form.annuitantinfo.annuitantsal = "Ms." Then strsex2 = "her"
Thanks for the help!
Ryan
My third userform needs to call on a value chosen from the second userform. On top of that, I need that value to be Dim'd as String in the third userform. Any ideas?
Portion of current code that does not work. I got the idea of Form.FormName.cboBox from someone, yet it doesn't seem to work for me. What do I have wrong?
annuitantinfo = userform
annuitantsal = combo box
__________________________
Dim strsex2 As String
If form.annuitantinfo.annuitantsal = "Mr." Then strsex2 = "his"
If form.annuitantinfo.annuitantsal = "Mrs." Then strsex2 = "her"
If form.annuitantinfo.annuitantsal = "Ms." Then strsex2 = "her"
Thanks for the help!
Ryan