Mike Hughes
Registered User.
- Local time
- Today, 22:11
- Joined
- Mar 23, 2002
- Messages
- 493
When I run this query I’m getting “#Error” in Balance field.
What am I doing wrong?
SELECT Table1.TransID, Table1.Date, Table1.[Check #], Table1.[Issued To], Table1.Description, Table1.[Case ID], Table1.[NCP/PF], Table1.Child, Table1.State, Table1.Payment, Table1.[Deposit Date], Table1.[Deposit Amount], Table1.Cleared, DSum("Nz(Payment,0)-Nz([Deposit Amount],0)","Date <=
" & Format(Date,"\#mm-dd-yyyy\#") & "
AND (TransID <= " & TransID & " OR Date <>
" & Format(Date,"\#mm-dd-yyyy\#") & ")") AS Balance
FROM Table1
ORDER BY Table1.Date, IIf(Payment>[Deposit Amount],0,1), Table1.TransID;
Thanks Mike
What am I doing wrong?
SELECT Table1.TransID, Table1.Date, Table1.[Check #], Table1.[Issued To], Table1.Description, Table1.[Case ID], Table1.[NCP/PF], Table1.Child, Table1.State, Table1.Payment, Table1.[Deposit Date], Table1.[Deposit Amount], Table1.Cleared, DSum("Nz(Payment,0)-Nz([Deposit Amount],0)","Date <=
" & Format(Date,"\#mm-dd-yyyy\#") & "
AND (TransID <= " & TransID & " OR Date <>
" & Format(Date,"\#mm-dd-yyyy\#") & ")") AS Balance
FROM Table1
ORDER BY Table1.Date, IIf(Payment>[Deposit Amount],0,1), Table1.TransID;
Thanks Mike