Greetings Experts,
I have a Access DB where I store sales data from our CRM server.
I base this DB for all my Excel calculations/reports via MS Query.
We sell cars.
The sales table in Access has a field 'CREDITED_INVOICE' that maintains a manual entry as of now, to differentiate between the actual invoice and the credited invoice.
From the report that the CRM provides, the only way to know if the invoice was credited and re-invoiced is via the latest system generated Invoice number 'INV_No'.
So, while the Access table stores both the credited and new invoice, it will obviously have a duplicate entry in the Chassis (VIN number) field.
My requirement:
The 'CREDITED_INVOICE' field should always store the value 'INVOICED' when a fresh CRM report is uploaded to the Access table.
However, when Access notices a duplicate CHASSIS, it should mark the value 'CREDITED' instead on all the previous records - (by observing the Older Invoice Number).
Warm Regards,
Philip