I am an amateur programmer and use Access to keep track of my medical practice.
I frequently have to send patients out for tests and the data is stored for each test in the patient’s record. What I would like to do is create a query that selects all patient tests done each month, and then further sorted by the facility they were sent to. As an example, I will use MRI’s.
Table name is Patient Data Table, the relevant fields are:
· Patient ID (Primary Key, Autonumber)
· Last Name (Patient’s last name)
· First Name
· C/S MRI Facility (text field chosen from a combo box from table [MRI Facility]
· C/S MRI Scan Date (Date field)
· C/S MRI Scan Done (Yes/No)
· L/S MRI Facility (text field chosen from a combo box from table [MRI Facility]
· L/S MRI Scan Date (Date field)
· L/S MRI Scan Done (Yes/No)
· …And so on for the other body areas
I have a unique query for each type of scan to be done that selects the patients based on Scan Done=Yes.
The format of the report that I have in mind would look something like this:
May 2013
Acme MRI
Patient 1 C/S MRI 5/3/2013
Patient1 L/S MRI 5/3/2013
Patient 2 C/S MRI 5/3/2013
Patient2 L/S MRI 5/3/2013
Standard MRI
Patient 3 C/S MRI 5/2/2013
Patient3 L/S MRI 5/3/2013
Patient 4 C/S MRI 5/5/2013
Patient4 L/S MRI 5/10/2013
…And so on for each facility and each month.
I have tried to use a query to compile all the data from the other queries and the result is dozens of unnecessary and confusing records. I have done my best to learn to ropes of union queries with frustrating results.
Any help available? Did I explain it clearly enough?
I frequently have to send patients out for tests and the data is stored for each test in the patient’s record. What I would like to do is create a query that selects all patient tests done each month, and then further sorted by the facility they were sent to. As an example, I will use MRI’s.
Table name is Patient Data Table, the relevant fields are:
· Patient ID (Primary Key, Autonumber)
· Last Name (Patient’s last name)
· First Name
· C/S MRI Facility (text field chosen from a combo box from table [MRI Facility]
· C/S MRI Scan Date (Date field)
· C/S MRI Scan Done (Yes/No)
· L/S MRI Facility (text field chosen from a combo box from table [MRI Facility]
· L/S MRI Scan Date (Date field)
· L/S MRI Scan Done (Yes/No)
· …And so on for the other body areas
I have a unique query for each type of scan to be done that selects the patients based on Scan Done=Yes.
The format of the report that I have in mind would look something like this:
May 2013
Acme MRI
Patient 1 C/S MRI 5/3/2013
Patient1 L/S MRI 5/3/2013
Patient 2 C/S MRI 5/3/2013
Patient2 L/S MRI 5/3/2013
Standard MRI
Patient 3 C/S MRI 5/2/2013
Patient3 L/S MRI 5/3/2013
Patient 4 C/S MRI 5/5/2013
Patient4 L/S MRI 5/10/2013
…And so on for each facility and each month.
I have tried to use a query to compile all the data from the other queries and the result is dozens of unnecessary and confusing records. I have done my best to learn to ropes of union queries with frustrating results.
Any help available? Did I explain it clearly enough?