=Nz(DSum("[debit]-[credit]","Ledger_query_backup","[account] = " & [Forms]![Ledger]![Accid] & " AND [Date] = #" & Format([Forms]![Ledger]![stdate],"yyyy-mm-dd") & "#"),0)
[Forms]![Ledger]![Accid]
text
' '
" & [Forms]![Ledger]![Accid] & "
'" & [Forms]![Ledger]![Accid] & "'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)