I have a database containing patients with blood test results. The table is called tblDatabase and the relevant fields for this discussion are Firstname, Surname, DOB, and SampleDate. Data entry is done through a form called frmDatabase. Some patients have their tests done repeatedly. While entering patient details on frmDatabase, I fill in the Surname field, then the Firstname field, and then the date of birth (DOB). I'm wondering if it's possible to write a VBA code (possibly using the After Update event) so that a textbox created in frmDatabase displays the sample date of the last test done for the patient in the database. I've been told that DMax might be involved in achieving this. So I want a previous match for surname, firstname and date of birth.