Ok. This might sound a little confusing but I really need some help!
I have a form containing personal info (ie. Name, DOB, address, etc.) and a subform linked by PatientID that contains a record for each visit to the clinic. The two forms are each based on a table (main form = tblPatientInfo, subform = tblClinical).
I also have a report that contains the personal info, with a subreport for each visit embedded in it.
Both the main form and main report use [PatientID] as the primary key, but the subform and subreport use two values as primary keys: [PatientID] and [VisitNo].
I want to put a button on my form that will print only the report for that specific patient and that specific visit. Since I need to use 2 primary keys to identify both my patient and the visit, I'm encountering a lot of difficulty with this.
Any ideas/suggestions/solutions are greatly appreciated!
PS. I've tried to use the OpenReport action but I can't get the syntax right for it to work.
I have a form containing personal info (ie. Name, DOB, address, etc.) and a subform linked by PatientID that contains a record for each visit to the clinic. The two forms are each based on a table (main form = tblPatientInfo, subform = tblClinical).
I also have a report that contains the personal info, with a subreport for each visit embedded in it.
Both the main form and main report use [PatientID] as the primary key, but the subform and subreport use two values as primary keys: [PatientID] and [VisitNo].
I want to put a button on my form that will print only the report for that specific patient and that specific visit. Since I need to use 2 primary keys to identify both my patient and the visit, I'm encountering a lot of difficulty with this.
Any ideas/suggestions/solutions are greatly appreciated!
PS. I've tried to use the OpenReport action but I can't get the syntax right for it to work.