The button "View Summary" on the Patients worksheet calls a macro "Button1_Click()"
This macro checks to see if the active cell in within the data table on Patients sheet. If so, it retrieves the patient id from column A and uses that id number toloop through the records on the "Episodes of Care" sheet. Each time the id number is found, the macro adds the line to the listbox. When all the records have been tested, it displays the form with a "Close" button.
To see the form and the code, right click either of the sheet tabs and select View Code.
In the VBAProject Window, click PatientSummary under the Forms folder.
Click Module1 to view or edit the button1_click macro.
Bookmarks