Basic dbase structure - each record has two subforms that could contain either a variable number of hospital admissions (each with an admission date) or a variable number of medical procedures (each with an operation date). In printing an active list of patient records the user will choose (with a field in the parent record) if they want the list to show number of days in the hospital (Hosp.day #10 for example) or number of days since the last procedure (postop day #10 for example). The report, based on a query with only the active patients on it, will then list the users choice of the two dates.
It gets tricky because there could be multiple admissions and operations, but the subforms are sorted so the most recent one is showing. Becuase the query that makes the report is based on admissions (all patients have an admission, but not all were operated on), if I tack on the operations table to my query I will lose those patients without operations - not acceptable. How can I make this work. SQL is not my forté.
Any help is appreciated,
Nelson
It gets tricky because there could be multiple admissions and operations, but the subforms are sorted so the most recent one is showing. Becuase the query that makes the report is based on admissions (all patients have an admission, but not all were operated on), if I tack on the operations table to my query I will lose those patients without operations - not acceptable. How can I make this work. SQL is not my forté.
Any help is appreciated,
Nelson