rudolfelizabeth
Programmer
The Dsum function doesnot work at all
run for client 100
Id Number Transdate Amount AliasBalruntot Runtot
2 100 28-03-2009 50.00 125.00 75.00
14 100 29-03-2009 300.00 425.00 125.00
3 100 31-03-2009 -15.00 410.00 425.00
5 100 28-04-2009 -25.00 385.00 410.00
8 100 31-08-2009 50.00 445.00 395.00
9 100 31-08-2009 10.00 445.00 435.00
code:
AliasBalruntot: Format(DSum("Amount","transactions2","number=" & [Clientnumber] & " and [Transdate]<=#" & Format([Transdate],"mm-dd-yyyy") & "#"),"fixed")
Runtot: Format(DSum("Amount","transactions2","ID<>" & [ID] & "and Number = " & [Clientnumber] & " and [Transdate]<=#" & Format([Transdate],"yyyy-mm-dd") & "#"),"fixed")
As you see Alias Balruntot cannot handle transactions on the same date 31-08-2009
When you include the Id it is a complete garbage.
For the second client it is also a garbage
user input clientnumber
Yourtransdate
Some programmers say you cannot use dsum in a query for a transaction file info
is this true.
run for client 100
Id Number Transdate Amount AliasBalruntot Runtot
2 100 28-03-2009 50.00 125.00 75.00
14 100 29-03-2009 300.00 425.00 125.00
3 100 31-03-2009 -15.00 410.00 425.00
5 100 28-04-2009 -25.00 385.00 410.00
8 100 31-08-2009 50.00 445.00 395.00
9 100 31-08-2009 10.00 445.00 435.00
code:
AliasBalruntot: Format(DSum("Amount","transactions2","number=" & [Clientnumber] & " and [Transdate]<=#" & Format([Transdate],"mm-dd-yyyy") & "#"),"fixed")
Runtot: Format(DSum("Amount","transactions2","ID<>" & [ID] & "and Number = " & [Clientnumber] & " and [Transdate]<=#" & Format([Transdate],"yyyy-mm-dd") & "#"),"fixed")
As you see Alias Balruntot cannot handle transactions on the same date 31-08-2009
When you include the Id it is a complete garbage.
For the second client it is also a garbage
user input clientnumber
Yourtransdate
Some programmers say you cannot use dsum in a query for a transaction file info
is this true.