'
Private Sub department()
Dim dep As String
dep = Trim(Adoaddlec.Recordset.Fields("department"))
If (dep = "1") Then
optict.Value = True
ElseIf (dep = "2") Then
optassessmentprogramme.Value = True
ElseIf (dep = "3") Then
optdbt.Value = True
ElseIf (dep = "4") Then
opttvet.Value = True
ElseIf (dep = "5") Then
optcarrerdev.Value = True
ElseIf (dep = "6") Then
optictinstruc.Value = True
ElseIf (dep = "7") Then
opteventsmanagement.Value = True
ElseIf (dep = "8") Then
opteduandtranng.Value = True
ElseIf (dep = "9") Then
optcnstrudsitemanagement.Value = True
End If
End Sub
my problem is getting the values to store in the database please help