VB Code:
SQL1 = "Select transplant.TDCSNO,transplant.TransplantNo,transplant.TransplantDate,transplant.TransplantStatus," _
& "DonorHospital," _
& "DonorCauseofDeath, DonorDOB,DonorAge,DonorAgeType," _
& "DonorSex, DonorAOB,Pressors,ColdIshaemicTm," _
& "KidneyUsed,ReferringCentre,TransplantPool," _
& "DateofFailure,CauseofFailure,DateofDeath,CauseofDeath," _
& "PancreasFunctioning,DatePancreasFailure," _
& "CausePancreasFailure,DatePancreasObsFunctioning,EsrdCode,NoDat," _
& "CMVRecipient,CMVDonor,Pairing," _
& "CMVInfection,CMVDate,BioTmToZero,BioGs,BioIF,Biopsy," _
& "AtnInterval,PoorClearence,DiabeticDet," _
& "LastCreat3,LastCreat2,LastCreat1,LastCreatYr3,LastCreatYr2,LastCreatYr1,CompDetails, " _
& "ReferringCenterCo,TreatmentCenter,TreatmentCenterCo,TreatmentCommenced,FollowupCenter, " _
& "FollowUpCenterCo,ReferringCons,FollowupCons,FollowUpMrn,ReferringMrn, " _
& "AddFailDetails,AddDeathDetails,InPatStay,PregnantDt,PregPreTx,BhCons,Rooms, " _
& "AgeAtTx, AgeTypeAtTx, DonorHospitalCo,ESRDDxSubtype,EDTADX, " _
& "DonorDetails, DrugDetails, ImmunoDetails,CreatDetails,PancreasDetails " _
& " From transplant " _
& " where transplant.TDCSNo = '" & Trim$(TDCSPass) & "'" _
& " and transplant.TransplantNo = '" & Trim$(TransplantNoPass) & "'"