paddgirl21
Registered User.
- Local time
- Today, 06:30
- Joined
- Dec 6, 2010
- Messages
- 11
I will give you the background of my access database.
It stores information for patients that come in and get their hearing tested. There is an Employee Table and a TestRecords table. So, every employee could have multiple records associated with it in the TestRecords table.
According to OSHA standards, these employees must be tested every year to see if there is a huge shift in their hearing. In order to do this the first time they are tested is called their BASELINE test. Every other test after that is compared to this test.
This is where I am having problems. In my TestRecords table, I have a field named TestNumber so I know which is their BASELINE test (which I have numbered starting at 1 then 1+1 after that). I need to compare their most recent test to their BASELINE (1) and display those records where the results are 10 degrees more than their baseline. I am not sure how to set up my WHERE clause to accomplish this. Any help would be greatly appreciated. Thank you!
It stores information for patients that come in and get their hearing tested. There is an Employee Table and a TestRecords table. So, every employee could have multiple records associated with it in the TestRecords table.
According to OSHA standards, these employees must be tested every year to see if there is a huge shift in their hearing. In order to do this the first time they are tested is called their BASELINE test. Every other test after that is compared to this test.
This is where I am having problems. In my TestRecords table, I have a field named TestNumber so I know which is their BASELINE test (which I have numbered starting at 1 then 1+1 after that). I need to compare their most recent test to their BASELINE (1) and display those records where the results are 10 degrees more than their baseline. I am not sure how to set up my WHERE clause to accomplish this. Any help would be greatly appreciated. Thank you!