Hi all,
A bit of background first.
I have a table that I keep all the records for training that staff have undertaken.
Among other fields in the table, the main ones are - Surname, First_Name, Element, Date_of_Training, Entry_Date (ie data entry date), Current_Training (which is a yes/No field) and Revision_Date. The table is called tbl_Training.
I also have a form that I use to enter new records. This form has a Save button in it. The form is called frm_Training_Entry_Form.
I also have 2 more forms.
1 form is used to extract ALL the training an individual has undertaken including any refresher training.
The 2nd form is used to only extract the latest training for all staff in a certain Element.
What I want to happen is when I hit the save button on the frm_Training_Entry_Form it should update the Current_Training field automatically in the tbl_Training table to No for all previous records for that person, providing the Surname, First_Name and Element are the same as the new record. I don't know how to do this.
In other words, I only want the 2nd form to display the latest entries for each person for each Element.
If you could provide a solution to my nightmare I would much appreciate it.
Cheers,
Kevin