I have 4 combo boxes on my form that has values in. I want the user to select the values of there choice and when they click the save button, these values are stored in a table field. I Have one combo box working that adds the value to the table field but I cant get the other ones working.
My code
Private Sub saveModuleDetails()
Dim rstSaveModule As DAO.Recordset
Set rstSaveModule = dbase.OpenRecordset("ModuleChoice")
rstSaveModule.AddNew ' Add a new row to the record set
'rstSaveModule("LoanNumber") = Me.txtLoanNumber.Value
rstSaveModule("StudentID") = Me.cboStudentID.Value
rstSaveModule("ModuleName") = Me.cboModuleOne.Value
rstSaveModule.Update
End Sub
My code
Private Sub saveModuleDetails()
Dim rstSaveModule As DAO.Recordset
Set rstSaveModule = dbase.OpenRecordset("ModuleChoice")
rstSaveModule.AddNew ' Add a new row to the record set
'rstSaveModule("LoanNumber") = Me.txtLoanNumber.Value
rstSaveModule("StudentID") = Me.cboStudentID.Value
rstSaveModule("ModuleName") = Me.cboModuleOne.Value
rstSaveModule.Update
End Sub