A
Azhar
I have one combo box (Cadre) having two fixed values Ministerial & Executive
at rowsource with "Value list" at rowsourcetype.
I wanted to have list of fixed values in the second combo box (rank) i.e the
ranks related with Ministerial cadre and ranks related with executive cadre.
I have put these code in (after update procedure) in the second combo box
(access 2002-03)
Private Sub Rank_AfterUpdate()
If Me.Cadre.Text = Executive Then
Me.Rank.RowSourceType = "value List"
Me.Rank.RowSource = "sp;dsp;ip"
Else
If Me.Cadre.Text = Ministerial Then
Me.Rank.RowSourceType = "value List"
Me.Rank.RowSource = "DD;SA;AD;CP"
End If
End If
End Sub
but it is not working, can any one can help/guide me in doing so.
at rowsource with "Value list" at rowsourcetype.
I wanted to have list of fixed values in the second combo box (rank) i.e the
ranks related with Ministerial cadre and ranks related with executive cadre.
I have put these code in (after update procedure) in the second combo box
(access 2002-03)
Private Sub Rank_AfterUpdate()
If Me.Cadre.Text = Executive Then
Me.Rank.RowSourceType = "value List"
Me.Rank.RowSource = "sp;dsp;ip"
Else
If Me.Cadre.Text = Ministerial Then
Me.Rank.RowSourceType = "value List"
Me.Rank.RowSource = "DD;SA;AD;CP"
End If
End If
End Sub
but it is not working, can any one can help/guide me in doing so.