Re: Previous record
- From: "Allen Browne" <AllenBrowne@xxxxxxxxxxxxxx>
- Date: Sat, 21 May 2005 23:43:06 +0800
See:
Referring to a Field in the Previous Record or Next Record
at:
http://support.microsoft.com/default.aspx?scid=kb;en-us;210504
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Dan Johnson" <dan_johnson@xxxxxxxxxxx> wrote in message
news:O1fnxphXFHA.612@xxxxxxxxxxxxxxxxxxxxxxx
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.
--
Dan Johnson
.
- Follow-Ups:
- Re: Previous record
- From: Dan Johnson
- Re: Previous record
- References:
- Previous record
- From: Dan Johnson
- Previous record
- Prev by Date: Re: how to create a crosstab query using access
- Next by Date: Update Query
- Previous by thread: Previous record
- Next by thread: Re: Previous record
- Index(es):
Relevant Pages
|