Mine Yours
New Member
Hi. Could you please assist with coding to retrieve the following records by using VBA code? I can achieve this by using MAX excel function but would prefer using VBA code.
The database keeps a record of the service history of about 800 vehicles. What I would like to achieve is to retrieve the last service date of ALL vehicles in the database and put it in a new worksheet.
Example: (extraction)
Database: (Service History)
This is what I would like to have in the :-
New Worksheet (Service Summation)
Any assistance will be greatly appreciated
The database keeps a record of the service history of about 800 vehicles. What I would like to achieve is to retrieve the last service date of ALL vehicles in the database and put it in a new worksheet.
Example: (extraction)
Database: (Service History)
Week – Year Date Registration Kilometres Service Done
48 – 2013 20 Nov 2013 AB 123456 78 945 A
49 – 2013 27 Nov 2013 BC 789123 23 654 B
03 – 2014 21 Jan 2014 AB 123456 88 000 B
06 – 2014 13 Feb 2014 BC 789123 34 567 C
20 – 2014 25 May 2014 AB 123456 100 000 C
22 – 2014 6 June 2014 BC 789123 49 000 A
This is what I would like to have in the :-
New Worksheet (Service Summation)
Week – Year Date Registration Kilometres Service Done
20 – 2014 25 May 2014 AB 123456 100 000 C
22 – 2014 6 June 2014 BC 789123 49 000 A
Any assistance will be greatly appreciated