davidjearly
Registered User.
- Local time
- Today, 00:56
- Joined
- Apr 30, 2009
- Messages
- 40
Hi,
I have a patient database with data stored in two tables. One form is used for entering personal details (First Name, Last Name, DOB, Patient Code, Sex, Address, Phone Number ect) for a patient. This is stored in the table called 'Patients'. Another form used for entering treatment data (Treatment date, Treatment Type (Assessment, Review 1, Review 2 ect) and 25 combo boxes for 25 standard assessments that contain scores from 0 to 10) which is stored in another table 'Treatments'.
I would like to have a button on the form that would export this data to excel with column names based on the 25 different assessments and row names based on whether it was an assessment or review. Obviously this would have to take into account what patient I was currently viewing so that only data for the patient record currently being used would be exported to an excel sheet. I think I would do this using the patient name as this is stored in the 'Treatments' table.
Is this possible? If so, is it a macro I would use for this? Lastly - any tips on how to go about creating this would be appreciated.
I have a patient database with data stored in two tables. One form is used for entering personal details (First Name, Last Name, DOB, Patient Code, Sex, Address, Phone Number ect) for a patient. This is stored in the table called 'Patients'. Another form used for entering treatment data (Treatment date, Treatment Type (Assessment, Review 1, Review 2 ect) and 25 combo boxes for 25 standard assessments that contain scores from 0 to 10) which is stored in another table 'Treatments'.
I would like to have a button on the form that would export this data to excel with column names based on the 25 different assessments and row names based on whether it was an assessment or review. Obviously this would have to take into account what patient I was currently viewing so that only data for the patient record currently being used would be exported to an excel sheet. I think I would do this using the patient name as this is stored in the 'Treatments' table.
Is this possible? If so, is it a macro I would use for this? Lastly - any tips on how to go about creating this would be appreciated.