The subform is based on table paying_in, and the browse SQL is:
Code: Select all
select pay_cash_tendered, DriverID, Driver, Duty, CashAmt, AnnulAmt
from paying_in
join cash_date on (cash_date_id = pay_cash_date_id)
join ticket_summary on (cdt_date = SchedDate and pay_emp_driverno = DriverID and pay_duty_id = Duty)
order by Driver asc