brahmabull525
Programmer
Under thread701-997176, a helpful person provided me with the following to answer an Access question that I had:
SELECT A.ID, A.SaleDate-Max(B.SaleDate) AS Diff
FROM tblSaleDate A INNER JOIN tblSaleDate B
ON A.ID=B.ID AND B.SaleDate<A.SaleDate
GROUP BY A.ID, A.SaleDate
Unfortunately, I have a new, related question. What do I need to add to this in order to create make a Table from it? I have the above in Query SQL View, and it won't allow me to go into Design View to select Make Table. The message I get is, "Microsoft Access can't represent the join expression B.SaleDate<A.SaleDate in Design View".
I'm assuming that there's something I can add in SQL. Can someone provide some guidance.
Thanks!
SELECT A.ID, A.SaleDate-Max(B.SaleDate) AS Diff
FROM tblSaleDate A INNER JOIN tblSaleDate B
ON A.ID=B.ID AND B.SaleDate<A.SaleDate
GROUP BY A.ID, A.SaleDate
Unfortunately, I have a new, related question. What do I need to add to this in order to create make a Table from it? I have the above in Query SQL View, and it won't allow me to go into Design View to select Make Table. The message I get is, "Microsoft Access can't represent the join expression B.SaleDate<A.SaleDate in Design View".
I'm assuming that there's something I can add in SQL. Can someone provide some guidance.
Thanks!