Hello,
I am trying to compare two tables with different dates in them. One has the date where a product broke the other has a date where the product was sold.
What I want to do is count the dates where the product was sold in between when the products broke.
ex: Products Broke
1/01/01
1/01/02
1/01/03
Products Bought
1/02/02
1/03/02
1/04/02
1/04/03
So I would like to create a new table that looks something like
Product Broke Number Bought
1/01/01 0
1/01/02 0
1/01/03 3
Present 1
I tried doing something like this
DoCmd.RunSQL ("SELECT Count(Date.Broke)INTO ALTA FROM MathingEQN WHERE (Date.Broke) BETWEEN MathingEQN.[datebroke(0)] AND MathingEQN.[datepbroke(1)]")
Any help would be appreciated
I am trying to compare two tables with different dates in them. One has the date where a product broke the other has a date where the product was sold.
What I want to do is count the dates where the product was sold in between when the products broke.
ex: Products Broke
1/01/01
1/01/02
1/01/03
Products Bought
1/02/02
1/03/02
1/04/02
1/04/03
So I would like to create a new table that looks something like
Product Broke Number Bought
1/01/01 0
1/01/02 0
1/01/03 3
Present 1
I tried doing something like this
DoCmd.RunSQL ("SELECT Count(Date.Broke)INTO ALTA FROM MathingEQN WHERE (Date.Broke) BETWEEN MathingEQN.[datebroke(0)] AND MathingEQN.[datepbroke(1)]")
Any help would be appreciated