Hi
I have a combo box that shows four fields (Column A, B, C, and D) from the source table. I used the follow code below to output the three fields (Column B, C, and D) to three text box (TextBox1, TextBox2, and TextBox3).
This works great. Instead I would like to only show one field (Column A) in the combo box and output the three fields (Column B, C, and D) to the three text box (TextBox1, TextBox2, and TextBox3). I’m still learning but am I going about this all wrong?
Private Sub ComboBox1_AfterUpdate( )
Me!TextBox1 = Me!ComboBox1.column(1)
Me!TextBox2 = Me!ComboBox1.column(2)
Me!TextBox3 = Me!ComboBox1.column(3)
End Sub
I have a combo box that shows four fields (Column A, B, C, and D) from the source table. I used the follow code below to output the three fields (Column B, C, and D) to three text box (TextBox1, TextBox2, and TextBox3).
This works great. Instead I would like to only show one field (Column A) in the combo box and output the three fields (Column B, C, and D) to the three text box (TextBox1, TextBox2, and TextBox3). I’m still learning but am I going about this all wrong?
Private Sub ComboBox1_AfterUpdate( )
Me!TextBox1 = Me!ComboBox1.column(1)
Me!TextBox2 = Me!ComboBox1.column(2)
Me!TextBox3 = Me!ComboBox1.column(3)
End Sub