在QRDBExist.onprint中寫上 procedure QRDBExistPrint(sender: TObject; var Value: String); begin if Value = 'Y' then value := '是'; if Value = 'N' then value := '否'; end;
用SQL呀: select 是否有='有' from table1 where Exist='Y' union select 是否有='无' from table1 where Exist='N'
procedure QRDBExistPrint(sender: TObject;
var Value: String);
begin
if Value = 'Y' then value := '是';
if Value = 'N' then value := '否';
end;
select 是否有='有' from table1 where Exist='Y'
union select 是否有='无' from table1 where Exist='N'