I have 2 combo boxes one for Region and One for District (cboRR and cboDD). I am trying to get the cboDD combo box to show only the districts that are in the selected Region. What I have tried so far is adding in an AfterUpdate to the cboRR with a long IF statement with all the RRDD combinations and for the cboDD to have an OnClick Requery. I have tried various combinations of those and nothing so far is working. Are there any thoughts as to why I cannot get this to work?
The if statement for the AfterUpdate is:
Public Sub AfterUpdate()
If cboRR = "03" Then
cboDD = "03" & ";" & "12" & ";" & "13" & ";" & "30" & ";" & "46" & ";" & "55" & ";" & "56" & ";" & "76" & ";" & "86" & ";" & "92" & ";" & "95"
Else
cboDD = " "
End If
If cboRR = "07" Then
cboDD = "07" & ";" & "17" & ";" & "20" & ";" & "27" & ";" & "32" & ";" & "33" & ";" & "36" & ";" & "40" & ";" & "44" & ";" & "45" & ";" & "49" & ";" & "64"
Else
cboDD = " "
End If
If cboRR = "10" Then
cboDD = "17"
Else
cboDD = " "
End If
If cboRR = "12" Then
cboDD = "12" & ";" & "97"
Else
cboDD = " "
End If
If cboRR = "13" Then
cboDD = "02" & ";" & "04" & ";" & "21" & ";" & "41" & ";" & "45" & ";" & "46"
End Sub