As you can see here, the user can chose a contract or a proposal
The reference control source is not the same if it's a proposal or a contract.
So in the after update of the type combo box type, I do this
Private Sub cbType_AfterUpdate()
If ([ReferenceType] = "Proposal") Then
cbReference.ControlSource = "[ProposalNo]"
cbReference.RowSource = "SELECT ProposalNo FROM Proposals WHERE ProposalNo is not null"
ElseIf ([ReferenceType] = "Contract") Then
cbReference.ControlSource = "[ContractNo]"
cbReference.RowSource = "SELECT ContractNo FROM Proposals WHERE ContractNo is not null"
End If
End Sub
The problem is it change the control source for all rows.
Is there a way to change it only for the selected row?
Thank you
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…