I have a form in MS Access 2007 with a combo box (Combo30) and two text box (ID & EntityType) populating from a combo box. When I select information on combo box both boxes get populated ok. However, when I select the following information, the new information replaces the old one.
'Find the record that matches the control.
'Update the row source of Text47 Textbox
'when the user makes a selection in Combo30
'combo box.
Private Sub Combo30_AfterUp date()
If Not IsNull(Me!Combo 30) Then
Me!Institution. Value = Me!Combo30.Colu mn(0)
Me!ID.Value = Me!Combo30.Colu mn(1)
Me!EntityType.V alue = Me!Combo30.Colu mn(4)
Me.Refresh
End If
End Sub
Also, when I come back to the form, the data is not saved.
I'm going crazy with this!! Can someone help?
'Find the record that matches the control.
'Update the row source of Text47 Textbox
'when the user makes a selection in Combo30
'combo box.
Private Sub Combo30_AfterUp date()
If Not IsNull(Me!Combo 30) Then
Me!Institution. Value = Me!Combo30.Colu mn(0)
Me!ID.Value = Me!Combo30.Colu mn(1)
Me!EntityType.V alue = Me!Combo30.Colu mn(4)
Me.Refresh
End If
End Sub
Also, when I come back to the form, the data is not saved.
I'm going crazy with this!! Can someone help?
Comment