Hey guys,
What could be the problem with my Macro.
In a Form I have a Subform that has more specific details including a TimeStamp Date() which i am using to open the report to a specific date which is usually NOW.
I want to use a macro for OpenReport for the Current Patient from the MainForm along with the information in the Subform for that Patient. I only want to see a Report of the most recent record.
the Query is done, the Report is done, however, Regardless of what i do i keep getting all of the records relating to that patient in the report.
This is my Macro WhereCondition
[Patient_Last_Name]=[Forms]![NewPatientFormTabbed]![Patient_Last_Name]
I get the Report for the Patient who is the subject of the Form, however I get all of the records associated with the SubForm which comes out to 400+ pages.
What could i do diferently?
Thanks in advance.
What could be the problem with my Macro.
In a Form I have a Subform that has more specific details including a TimeStamp Date() which i am using to open the report to a specific date which is usually NOW.
I want to use a macro for OpenReport for the Current Patient from the MainForm along with the information in the Subform for that Patient. I only want to see a Report of the most recent record.
the Query is done, the Report is done, however, Regardless of what i do i keep getting all of the records relating to that patient in the report.
This is my Macro WhereCondition
[Patient_Last_Name]=[Forms]![NewPatientFormTabbed]![Patient_Last_Name]
I get the Report for the Patient who is the subject of the Form, however I get all of the records associated with the SubForm which comes out to 400+ pages.
What could i do diferently?
Thanks in advance.
