SELECT EARNS_Data_tbl.RDepositorAcct, EARNS_Data_tbl.RItemTimeStamp, EARNS_Data_tbl.RDepositorName, EARNS_Data_tbl.RCheckAmt, EARNS_Data_tbl.RCheckNumber, EARNS_Data_tbl.RTransaction, EARNS_Data_tbl.RMakerName, EARNS_Data_tbl.RPayee, EARNS_Data_tbl.RDraweeMICR, EARNS_Data_tbl.RMakerAcct, EARNS_Data_tbl.RDepositDate, Reaseon_Codes_tbl.Code_Description INTO DataExtract IN 'C:\Documents and Settings\joe\Desktop\R2080558.mdb'
FROM EARNS_Data_tbl LEFT JOIN Reaseon_Codes_tbl ON EARNS_Data_tbl.RReasonCode = Reaseon_Codes_tbl.Reason_Code_ID
WHERE (((EARNS_Data_tbl.RDepositorAcct)=IIf([Forms]![PowerUserForm]![AccountGrp_Report]=1,[RDepositorAcct],[Forms]![PowerUserForm]![Account_Number_Report])) AND ((EARNS_Data_tbl.Date_Processed) Between [Forms]![PowerUserForm]![Start_Date_Report] And [Forms]![PowerUserForm]![End_Date_Report]))
ORDER BY EARNS_Data_tbl.RItemTimeStamp, EARNS_Data_tbl.RCheckAmt DESC;
|