Besides creating a new table and choosing the autonumber field, how do I create a query field that adds an ID number that automatically numbers itself (from 1,2,3,4,etc), when I query a table.
For example, I have a table with one field
Names
------
John
Frank
Larry
How do I create a query...
Another more roundabout way to do it is to:
1. Run a query finding duplicate entries by name, grouping by customer names, and not including the other information. This gives a unique set of names of people with multiple entries.
2. Run a second unmatched query with the previous query linked...
Thanks Geekmomz, JerryDennison, and RichUK. This formula worked great:
RunningSum: (Select Sum (OrderTotal) FROM [Orders] as Temp
WHERE [Temp].[OrderID] <= [Orders].[OrderID])
Brilliant.
[thumbsup]
Thanks for the response..but how do I create a running balance calculation, which shows the standing balance for each date (or record).
I believe your solution only calculates the balance for the entire table, or last date. The query should come out:
Date Balance
1/1 100
2/1 300...
If I have a table that tracks inventory, and each record denotes a transaction that either adds or subracts from inventory. How do I create another field that automatically calculates the balance for each record?
The calculation would entail adding or subtracting from the current record, as...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.