Kayleigh
Member
- Local time
- Today, 19:55
- Joined
- Sep 24, 2020
- Messages
- 709
Hi there
I have encountered an issue which seems to be quite common but can't find a resolution.
I have a subform which is a datasheet. The recordsource is a query. I am trying to add a totals row - it works as a query but will not display in the form. Any ideas why?
This is the base query (qryAccByStaffFilter):
And this is the recordsource query:
I have encountered an issue which seems to be quite common but can't find a resolution.
I have a subform which is a datasheet. The recordsource is a query. I am trying to add a totals row - it works as a query but will not display in the form. Any ideas why?
This is the base query (qryAccByStaffFilter):
SQL:
SELECT tblTransaction.*, tblTransactionItem.*, Format([fldtdatetime],"mmddyyyyhhnnss") AS cfDateID, lkptblTransEvent.fldEventName
FROM tblTransaction INNER JOIN (tblAccounts INNER JOIN (lkptblTransEvent INNER JOIN tblTransactionItem ON lkptblTransEvent.fldTransEventID = tblTransactionItem.fldTEventID) ON tblAccounts.fldAccountID = tblTransactionItem.fldAccountID) ON tblTransaction.fldTransactionID = tblTransactionItem.fldTTransactionID
WHERE (((tblAccounts.fldAccountTypeID)=6) AND ((tblAccounts.fldContactID)=[forms]![frmStaff]![fldContactID]))
ORDER BY tblTransaction.fldTDateTime;
And this is the recordsource query:
SQL:
SELECT qryAccByStaffFilter.fldTransactionID, Format([fldTDateTime],"dd/mm/yyyy") AS cfDate, [fldTDesc] & IIf(isnothing([fldtnote]),""," - " & [fldtnote]) AS cfNotes, qryAccByStaffFilter.fldEventName, qryAccByStaffFilter.fldTValue, CCur(DSum("fldtvalue","qryaccbystafffilter","val([cfdateid]) <= " & Val([cfdateid]))) AS runTot, qryAccByStaffFilter.fldTDateTime
FROM qryAccByStaffFilter
ORDER BY qryAccByStaffFilter.fldTDateTime DESC;