I have 2 cascading combo box (code below), selected values in my 2 combo box are saved in my tblMain under the following fields namely: [Product] and [Description]. Now, I want to add a ProductID (Number) field in my lookup table (tblChoice) and save that value in ProductID field in tblMain. Please help.
Code:
Private Sub cboProduct_AfterUpdate()
Dim strSource As String
strSource = "SELECT Description " & _
"FROM tblChoice " & _
"WHERE Product = '" & Me.cboProduct & "' ORDER BY Description"
Me.cboDesc.RowSource = strSource
Me.cboDesc = vbNullString
End Sub