Grouped Reports or Queries (1 Viewer)

Matt99

New member
Local time
Yesterday, 21:24
Joined
Nov 16, 2012
Messages
6
Good day everyone!

I am working on a List or database that looks like the one below...

ID Date Debit Credit
01 1-May-2010 0 10,000
02 1-May-2010 10,000 0
03 1-May-2010 66.75 0
04 4-May-2010 2,500 0
05 4-May-2010 1,010 0
06 4-May-2010 0 2,500
07 4-May-2010 75 0
08 4-May-2010 0 1,000
09 7-May-2010 510 0
10 7-May-2010 500 0
11 7-May-2010 0 500
12 7-May-2010 0 70

I would like to use Ms-Access queries or reports

Or Other solutions
will match Debits vs Credits for each day
then display the matched exact values (between Debit and Credit values)
Or display the values (also between Debit and Credit values) with the difference of up to $15
Table results is listed below...

ID Date Debit Credit
01 1-May-2010 0 10,000
02 1-May-2010 10,000 0
04 4-May-2010 2,500 0
05 4-May-2010 1,010 0
06 4-May-2010 0 2,500
08 4-May-2010 0 1,000
09 7-May-2010 510 0
10 7-May-2010 500 0
11 7-May-2010 0 500

Thanks!
 

GinaWhipp

AWF VIP
Local time
Today, 00:24
Joined
Jun 21, 2011
Messages
5,899
What query are you using to carry the values forward or is that what you are asking for?
 

Matt99

New member
Local time
Yesterday, 21:24
Joined
Nov 16, 2012
Messages
6
Yes, In other words, The bottom list in my example above is what I am expecting to get using a select or maybe a summary query...
 

GinaWhipp

AWF VIP
Local time
Today, 00:24
Joined
Jun 21, 2011
Messages
5,899
This should get you started...

Code:
SELECT tblPettyCash.pcID, tblPettyCash.pcDate, tblPettyCash.pcDate AS DateAlias, tblPettyCash.pcPayee, tblPettyCash.pcDescription, tblPettyCash.pcPayment, tblPettyCash.pcDeposit, tblPettyCash.pcReconciled, DSum("pcDeposit","tblPettyCash","pcID <= " & [pcID])-DSum("pcPayment","tblPettyCash","pcID <= " & [pcID]) AS RunSum, DSum("pcDeposit","tblPettyCash","[pcDate]<=#" & [DateAlias] & "#")-DSum("pcPayment","tblPettyCash","[pcDate]<= #" & [DateAlias] & "#") AS RunSumByDate, Format([pcDate],"m/yyyy") AS TransactionMonthYear, Year([pcDate]) AS TransactionYear
FROM tblPettyCash;

...note you will need both ID and Date to get the correct order.
 

Users who are viewing this thread

Top Bottom