Hi,
I am trying to pull data where the data is between 2 dates. The problem is, I don't want the user to have select the dates. I want to be able to pull the data that is between the most current 2 dates.
My tables are as follows:
TblHospitalVisit
HospitalVisitID
HospitalVisitDateTime
PatientID
(and lots of other fields)
TblAssessment
AssessmentID
PatientID
AssessmentDateTime
(and lots of other fields)
I need to be able to get all of the hospital visits that occurred between the last assessment and the assessment before that. So basically the user will select the patient and the assessment date they are interested in viewing. I want to show all hospital visits that have occurred between the date selected and the previous date. They will not select the previous assessment date, I want access to do that behind the scenes.
Is this possible? Any help would be most appreciated!
Thanks,
Brenda
I am trying to pull data where the data is between 2 dates. The problem is, I don't want the user to have select the dates. I want to be able to pull the data that is between the most current 2 dates.
My tables are as follows:
TblHospitalVisit
HospitalVisitID
HospitalVisitDateTime
PatientID
(and lots of other fields)
TblAssessment
AssessmentID
PatientID
AssessmentDateTime
(and lots of other fields)
I need to be able to get all of the hospital visits that occurred between the last assessment and the assessment before that. So basically the user will select the patient and the assessment date they are interested in viewing. I want to show all hospital visits that have occurred between the date selected and the previous date. They will not select the previous assessment date, I want access to do that behind the scenes.
Is this possible? Any help would be most appreciated!
Thanks,
Brenda