Hi
I need to display selected entries on a form and also a report. The selection is in a variable called gstrTester. The call to the form is: DoCmd.OpenForm FormName:="frmSelected", WhereCondition:=gstrTester. The contents of gstrTester appear in the form's Property Sheet Filter box and the form appears correctly.
The same does not happen with the report. The call DoCmd.OpenReport "rptSelected", WhereCondition:=gstrTester does not fill the report filter box and so the complete table is printed, not just the selected entries.
Can someone please tell me what I'm doing wrong?
NWTrust
I need to display selected entries on a form and also a report. The selection is in a variable called gstrTester. The call to the form is: DoCmd.OpenForm FormName:="frmSelected", WhereCondition:=gstrTester. The contents of gstrTester appear in the form's Property Sheet Filter box and the form appears correctly.
The same does not happen with the report. The call DoCmd.OpenReport "rptSelected", WhereCondition:=gstrTester does not fill the report filter box and so the complete table is printed, not just the selected entries.
Can someone please tell me what I'm doing wrong?
NWTrust