Strange... I have amended it anyway so thanks for pointing it out.Yes, that is the part I spotted, yet you have other date formats in the correct order?
What difference does it make? well 01/12/2020 can either be 1st December or 12th January.? Which is it.?
That format ONLY works when it cannot be anything else like 29/10/2020 as there are not 29 months.?
I'm surprised you have not had any issues TBH as you are comparing strSTDateLast which is mm/dd/yyyy format with strAsOf which is in dd/mm/yyyy format??????
Any thoughts on amending the code to include the Shipments table as per my previous post today?
Thanks,
Chris