-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Perhaps, instead of having the DLookup() function in a report control
(and the Sorting/Grouping dialog box), you put it in the report's
RecordSource query, in the SELECT clause. That way you'll get the
DLookup() value as part of the report's data and you can include it in
the calculation as a value (column name) instead of the complete
DLookup() function. E.g.:
SELECT This, That,
DLookup("Amount","Sales","SalesDate = O.SalesDate") As SalesAmt
FROM Orders As O
.....
You'd use the column SalesAmt in you calculation.
HTH,
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQBbXFIechKqOuFEgEQLcjwCaAnwEgVdmJ5VCL1AsD6YnlMKpj5IAn01W
0i+baU23jz0U+kqJmqy/n2hf
=7EO/
-----END PGP SIGNATURE-----