Hi there. I am at a loss. I am looking for some help. I am taking on a data base that is huge. The data was being previously managed in Excel and due to the many different instances, calculations had to be done manually. These had not been managed for years due to the extreme large amount of data to analyze. No one had time. I am at a loss. I have a good foundation. I am, however, stuck. The key has to be artificial as there is no single entity to that is unique to any one part of any field.
Here is the deal. I have one car, making many moves. This car will make many trips and each movement will determine if it is an empty move or a loaded move. The entire objective is to analyze the loaded mileage vs the empty mileage by analyzing the moves for each trip. Each trip is determined by the loaded, empty, loaded status of each movement.
I am using an artificial key to AutoNumber each movement. It is the only way the key will be unique. I then need to look at each cell in the loaded column. When the column goes from >1, then 0, then back to >1, I need to input a trip#, in a different column, the same for every movement, (of that trip or)for that range of cells where the cell value went back to <1, minus the cell that went back to the >1. Everything above that last >1 entry. Basically this is to group each trip number and a new trip does not start until the, loaded trip goes to empty, then to loaded, again.
I am so lost. Is this an array, loop, and If statement? A combination of them all. The need is to build a macro but I can not figure out how to manage this movement. I think i am probably overthinking this. Making it harder than it is. I am rusty at Access. I love working with it. I am just frustrated at this point. Anyone have any good suggestions that might lead to an epiphany on my end??