does anyone know why this will not work? I keep getting all renewcontracts.contractnum
If 0=StrCmp({_OrdContracts.ContractNum}, {_RenewContracts.ContractNum}, 0) Then
If 0<>StrCmp({_OrdContracts.ContractNum}, {_RenewContracts.ContractNum}, 0) Then
{_OrdContracts.ContractNum}
Else
{_RenewContracts.ContractNum}
Else
{_RenewContracts.ContractNum}
If 0=StrCmp({_OrdContracts.ContractNum}, {_RenewContracts.ContractNum}, 0) Then
If 0<>StrCmp({_OrdContracts.ContractNum}, {_RenewContracts.ContractNum}, 0) Then
{_OrdContracts.ContractNum}
Else
{_RenewContracts.ContractNum}
Else
{_RenewContracts.ContractNum}