D
Dan Johnson
Hello,
I have a rather lengthy question in regard to updating a field based on the Previous record's input. We have electric vehicles that utilize batteries for their operation. There are 13 vehicles with approximately 2 battery changes per day in a group of 28 batteries. As an operator changes the battery in the vehicle, I would like to automatically input that current battery into the now Last battery field within a form for the data entry.
I have been able to get two queries written to isolate down to the current record. Based on the form's current record, the first query filters to ALL of that specific vehicle's records. The second query isolates down to the ID (AutoNumber) of the current vehicle. This is the point at which I am stumped
I haven't been able to figure out how to go to the Previous Battery for that record (vehicle battery change) in an effort to do a later copy via macro.
I currently have the form updating with the Last Battery but that doesn't work because the Form needs to have the ability to make corrections on older records. Since one of the older records happened, in some cases, a month before the Last Battery was installed, it actually needs to be that record's Previous record.
Unfortunately, I am not proficient in VB and am limited to the wizards for queries.
I apologize for this lengthy request. Thanks, in advance for any suggestions for this problem.
I have a rather lengthy question in regard to updating a field based on the Previous record's input. We have electric vehicles that utilize batteries for their operation. There are 13 vehicles with approximately 2 battery changes per day in a group of 28 batteries. As an operator changes the battery in the vehicle, I would like to automatically input that current battery into the now Last battery field within a form for the data entry.
I have been able to get two queries written to isolate down to the current record. Based on the form's current record, the first query filters to ALL of that specific vehicle's records. The second query isolates down to the ID (AutoNumber) of the current vehicle. This is the point at which I am stumped
I haven't been able to figure out how to go to the Previous Battery for that record (vehicle battery change) in an effort to do a later copy via macro.
I currently have the form updating with the Last Battery but that doesn't work because the Form needs to have the ability to make corrections on older records. Since one of the older records happened, in some cases, a month before the Last Battery was installed, it actually needs to be that record's Previous record.
Unfortunately, I am not proficient in VB and am limited to the wizards for queries.
I apologize for this lengthy request. Thanks, in advance for any suggestions for this problem.