LarryE
Well-known member
- Local time
 - Yesterday, 23:50
 
- Joined
 - Aug 18, 2021
 
- Messages
 - 1,078
 
@Sreemike :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.
A couple of other questions which will impact how you design this project:
- May a patient use different hospitals for testing or are they assigned to just one hospital?
 - May each hospital have multiple consultants which in turn serve multiple patients or is there just one consultant for each hospital?