I borrowed code from the thread titled "Inactive names dont show on old records" in this forum, and it works GREAT! (one post away from being able to add links, sorry!)
But one tiny problem: we have a form that will have one combo box for Associates (like Employee in the OPs DB) which I've got set to show only active Associates for new entry per the tips in the above thread, but we'll also have a combo box for Developer which I need to function the same way. I don't know how to add that part to the On Current event, can anyone help?
adapted code:
Thanks-
But one tiny problem: we have a form that will have one combo box for Associates (like Employee in the OPs DB) which I've got set to show only active Associates for new entry per the tips in the above thread, but we'll also have a combo box for Developer which I need to function the same way. I don't know how to add that part to the On Current event, can anyone help?
adapted code:
Code:
Private Sub Form_Current()
Dim strComboRowSource As String
If Me.NewRecord Then
strComboRowSource = "SELECT T_Associates.AssociateID, T_Associates.Associate, T_Associates.Active " & _
"FROM T_Associates " & _
"WHERE (((T_Associates.Active)=True));"
Else
strComboRowSource = "SELECT T_Associates.AssociateID, T_Associates.Associate, T_Associates.Active " & _
"FROM T_Associates; "
End If
Me.cboAssociateID.RowSource = strComboRowSource
Me.cboAssociateID.Requery
End Sub
Thanks-