Yes, that did it. Just change Row Source Type for Combo2 to 'Value List".
I have another problem here. If I start entering government workers and their associations, say I do it for 5 government workers. Then, when I enter a six worker who is not a government, but a contractor, I still get the choices for a government worker. This should not happen. There should be no choices for contr workers . Those choices are a holdover from putting in the government workers and they should be gone. Simply changing to a new worker who is a contr worker should offer no choices at all.
I am guessing that the way to correct this is to use a requery statement. But where?
I guess that I should put it immediately at the end of the government choices in the If-Endif section.
It would be something like this.
Old code
Code:
Private Sub cboGov_or_Contr_AfterUpdate()
If Me!cboGov_or_Contr = "gov" Then
Me!cboAssoc_Gov.RowSource = "NADP;Pathways;Pathways 640"
End If
Me!cboAssoc_Gov.Requery
New code
Code:
Private Sub cboGov_or_Contr_AfterUpdate()
If Me!cboGov_or_Contr = "gov" Then
Me!cboAssoc_Gov.RowSource = "NADP;Pathways;Pathways 640"
Me!cboAssoc_Gov.Requery
End If
Is this correct? Any help appreciated. Thanks in advance.
Respectfully,
Lou Reed