当我使用此代码时,我会在Crystal Report中重复显示行。我不能使用distinct,因为我有一个OLE对象。
SELECT PT.PT_Code, PT.age_sex2, PT.fullname2, Ptsense.PT_Date, DR.Dr_Name, Ptsense.sample, Ptsense.G, Ptsense.coun, Ptsense.comm, Ptsense.organism, Ptsense.lowsens, resist.resis, labdetails.labnme, labdetails.labspecial, labdetails.labadress, labdetails.labphone, labdetails.labtime, labdetails.labprint, labdetails.labnameenglish, labdetails.labspecialenglish, labdetails.lablogo
FROM labdetails, resist
INNER JOIN ((PT INNER JOIN Ptsense ON PT.PT_Code = Ptsense.PT_Code)
INNER JOIN DR ON PT.DR_Code = DR.Dr_Code) ON resist.PT_Code = Ptsense.PT_Code
WHERE (((PT.PT_Code)={0}) AND ((Ptsense.PT_Date)=#{1}#));"