Not yet.
TxtActiveContracts = IIf(Me![Carrier] = txtSAPVendor, DCount("[terminated]", "tblcontract", "[terminated]<>-1"), "")
Tried this and now I get an error message
txtsapvendor is in the main form and carrier is in the subform i thought it should've been TxtActiveContracts =...