Two queries acting as RecordSource for a report:
1) gives donations for all donors within a pair of dates
2) is further restricted with second WHERE clause to only show 1 donor
The report (when using the second query) pops up a modal box asking for the value of ContribDt. Why??
Here's the second query's SQL:
SELECT Donors.Addressee, Donors.Address, RTrim([City])+", "+[State]+" "+[Zip] AS CityStZip, Contributions.Amount, Contributions.Fund
FROM Donors INNER JOIN Contributions ON Donors.ID = Contributions.DonorID
WHERE (Contributions.ContribDt Between Forms!frmRecordDonations!txtStDt And Forms!frmRecordDonations!txtEndDt) And (Contributions.DonorID=TempVars!donor);
Only difference between this one on and the first query (which doesn't ask for the ContribDt is the last And.... phrase. The parentheses don't exit in the first query either. But I've tried removing them with no change in results.
Oddly, when I just click OK on the modal parameter window, without entering a value... the report print ok anyway.
1) gives donations for all donors within a pair of dates
2) is further restricted with second WHERE clause to only show 1 donor
The report (when using the second query) pops up a modal box asking for the value of ContribDt. Why??
Here's the second query's SQL:
SELECT Donors.Addressee, Donors.Address, RTrim([City])+", "+[State]+" "+[Zip] AS CityStZip, Contributions.Amount, Contributions.Fund
FROM Donors INNER JOIN Contributions ON Donors.ID = Contributions.DonorID
WHERE (Contributions.ContribDt Between Forms!frmRecordDonations!txtStDt And Forms!frmRecordDonations!txtEndDt) And (Contributions.DonorID=TempVars!donor);
Only difference between this one on and the first query (which doesn't ask for the ContribDt is the last And.... phrase. The parentheses don't exit in the first query either. But I've tried removing them with no change in results.
Oddly, when I just click OK on the modal parameter window, without entering a value... the report print ok anyway.