Please see the table inventory below
Material BUn Good Rec Date BatchUnrestricted Expiry Date 300008 KG 09/04/2015 0000033574 32,000 18/01/2017 300008 KG 14/05/2015 000003392724,725 15/02/2017 300008 KG 03/06/2015 0000034121 24,725 02/11/2016 300058 KG 04/06/2015 0000034155 6,300 05/02/2017 300058 KG 06/06/2015 0000034168 36,000 08/02/2017 300058 KG 09/06/2015 0000034214 24,975 07/04/2017 300058 KG 09/06/2015 0000034218 10,800 08/04/2017
I want to find the records at the same material which have the greater Batch but sooner Expiry Date (the records highlighted above) so that we can issue by FEFO (First Expiry First Out) regulation. The table have large records so we can not find out manually
I try to use the DLookup in the Query but the results is not correct
Could you please help me?
Thanks in advance