Hello,
I have a form on which I put a few controls. I have one ComboBox and two TextBoxes. ComboBox's name is Dep, TexBox1 - Abr, TextBox2 - Fac.
Is it possible to automatically fill up TextBox1 and TextBox2 with the appropriate values depending on the value selected by a user from ComboBox?
I though about Public Function with a Select Case Statement, but I don't know how to refer to these controls.
Example:
ComboBox values: Man; Hlt; Soc; Lin
Textbox1: if Man -> M; if Hlt -> N; if Soc -> P; if Lin -> E
Thank you in advance for any help.
I have a form on which I put a few controls. I have one ComboBox and two TextBoxes. ComboBox's name is Dep, TexBox1 - Abr, TextBox2 - Fac.
Is it possible to automatically fill up TextBox1 and TextBox2 with the appropriate values depending on the value selected by a user from ComboBox?
I though about Public Function with a Select Case Statement, but I don't know how to refer to these controls.
Example:
ComboBox values: Man; Hlt; Soc; Lin
Textbox1: if Man -> M; if Hlt -> N; if Soc -> P; if Lin -> E
Thank you in advance for any help.