S
Sarah
To begin with - thank you - you are all so helpful with all of your
knowledge.
I read the answer is out there but I could not find it. I have a form with
a subform. I created a report to print from the form. I want the report to
print the the form information and the selected record in the subform. Below
is the where condition I used. When I run the where condition from the
immediate window I get the results I expect - but when the report runs, it is
blank. I just can't figure out what it is. The DistID field is numeric and
the DatePaid field is a Date. Any help would be appreciated.
DoCmd.OpenReport stDocName, acPreview, ,
"[Qry-DistDistDetail].[Distributors.DistID]=" & Me![DistID] & " and
[Qry-DistDistDetail]![DatePaid]=" & [Form]![frm-DistDetailSubform]![DatePaid]
Results:
[Qry-DistDistDetail].[Distributors.DistID]=1 and
[Qry-DistDistDetail]![DatePaid]= 12/22/2005
Thanks, Sarah
knowledge.
I read the answer is out there but I could not find it. I have a form with
a subform. I created a report to print from the form. I want the report to
print the the form information and the selected record in the subform. Below
is the where condition I used. When I run the where condition from the
immediate window I get the results I expect - but when the report runs, it is
blank. I just can't figure out what it is. The DistID field is numeric and
the DatePaid field is a Date. Any help would be appreciated.
DoCmd.OpenReport stDocName, acPreview, ,
"[Qry-DistDistDetail].[Distributors.DistID]=" & Me![DistID] & " and
[Qry-DistDistDetail]![DatePaid]=" & [Form]![frm-DistDetailSubform]![DatePaid]
Results:
[Qry-DistDistDetail].[Distributors.DistID]=1 and
[Qry-DistDistDetail]![DatePaid]= 12/22/2005
Thanks, Sarah