* Fix error in calclookupvalue

This commit is contained in:
Michaël Van Canneyt 2021-08-09 16:34:35 +02:00
parent 352435cb75
commit 3cfec8f905

View File

@ -759,7 +759,7 @@ procedure TField.CalcLookupValue;
begin begin
if FLookupCache then if FLookupCache then
Value := LookupList.ValueOfKey(FDataSet.FieldValues[FKeyFields]) Value := LookupList.ValueOfKey(FDataSet.FieldValues[FKeyFields])
else if Assigned(FLookupDataSet) and FDataSet.Active then else if Assigned(FLookupDataSet) and FLookupDataSet.Active then
Value := FLookupDataSet.Lookup(FLookupKeyfields, FDataSet.FieldValues[FKeyFields], FLookupresultField); Value := FLookupDataSet.Lookup(FLookupKeyfields, FDataSet.FieldValues[FKeyFields], FLookupresultField);
end; end;