Hi everyone,
I've made a little inventory database. I want to calculate how long (in days) a certain number of articles where in stock. The setup of my table is like:
wich in a dataview looks like:
Now I want to calculate for how long the article was in stock untill next mutation (and say today is the 15th of january 2006). So then it would look like:
How can you calculate this column?
Pampers![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
Keeping it simple can be complicated
I've made a little inventory database. I want to calculate how long (in days) a certain number of articles where in stock. The setup of my table is like:
Code:
tblStockMutations
------------------
StockMutID
MutationDate
ArticleCode
SoldNumber
ReceivedNumber
Code:
MutDate Arti Sold Recei
------- ---- ---- -----
10jan06 1000 5
12jan06 1000 8
15jan06 1000 1
.....
Now I want to calculate for how long the article was in stock untill next mutation (and say today is the 15th of january 2006). So then it would look like:
Code:
MutDate Arti Sold Recei Days
------- ---- ---- ----- ----
10jan06 1000 5 2
12jan06 1000 8 3
15jan06 1000 1 1
.....
How can you calculate this column?
Pampers
![[afro] [afro] [afro]](/data/assets/smilies/afro.gif)
Keeping it simple can be complicated