I have a combo box that after I enter the data it returns a value to another cell. The following is the code I am using and it is working fine...
Private Sub new_record_Click()
On Error GoTo Err_new_record_Click
DoCmd.GoToRecord , , acNewRec
Exit_new_record_Click:
Exit Sub
Err_new_record_Click:
MsgBox Err.Description
Resume Exit_new_record_Click
End Sub
Private Sub Combo92_AfterUpdate()
Me.LBS_GAL = Me.Combo92.Column(1)
DoCmd.RunCommand acCmdRefresh
End Sub
Private Sub ID1_AfterUpdate()
Me.ID1 = Me.ComboBox.Column(1)
End Sub
BUT,
how do I add to this so when I enter the data into the ID1 combo box and it pulls the info into the LBS_GAL field, it will also pull information into a field called LBS_VOC?
Private Sub new_record_Click()
On Error GoTo Err_new_record_Click
DoCmd.GoToRecord , , acNewRec
Exit_new_record_Click:
Exit Sub
Err_new_record_Click:
MsgBox Err.Description
Resume Exit_new_record_Click
End Sub
Private Sub Combo92_AfterUpdate()
Me.LBS_GAL = Me.Combo92.Column(1)
DoCmd.RunCommand acCmdRefresh
End Sub
Private Sub ID1_AfterUpdate()
Me.ID1 = Me.ComboBox.Column(1)
End Sub
BUT,
how do I add to this so when I enter the data into the ID1 combo box and it pulls the info into the LBS_GAL field, it will also pull information into a field called LBS_VOC?