You can do this using a query alone and it would be much faster than anything VBA can put together.
First You need to create a query that gives you the last two orders that a customer purchases.
SELECT Table1.ID, Table1.CustomerIDNumber, Table1.DateOfPurchase, Table1.Item
FROM Table1
WHERE...