accessjockey
New member
- Local time
- Today, 20:05
- Joined
- Oct 5, 2008
- Messages
- 9
Hi all,
I would like to add a column to this query that calculates a running total of the 'This Invoice' field.
Here is the query design :
This query will return results based on information provided by the user.
Here is the result if I type in 001 as the project number I would like to look at:
I have attempted to use the DSum function. It works fine however, it completly ignores the parameter criteria of the query and returns a running total of the entire 'Invoices' table. I would like it to return a running total of only the figures relating to the project number I asked it to look at.
Here is the code I used:
RunTot: DSum("ThisInvoice","Invoices","[InvoiceNumber]<=" & [ID] & "")
I would like the 'RunTot' calculated field to return results like this:
What do I need to add to restrict the calculation to the results of the query?
I would like to add a column to this query that calculates a running total of the 'This Invoice' field.
Here is the query design :
This query will return results based on information provided by the user.
Here is the result if I type in 001 as the project number I would like to look at:
I have attempted to use the DSum function. It works fine however, it completly ignores the parameter criteria of the query and returns a running total of the entire 'Invoices' table. I would like it to return a running total of only the figures relating to the project number I asked it to look at.
Here is the code I used:
RunTot: DSum("ThisInvoice","Invoices","[InvoiceNumber]<=" & [ID] & "")
I would like the 'RunTot' calculated field to return results like this:
What do I need to add to restrict the calculation to the results of the query?