J
John S. Ford, MD
I'm creating a report that does NOT have an underlying query bound to it.
Instead, it has a large number of TextBoxes that are populated using
different DCount statements that use queries.
Can I put some code in the OnOpen event of the report that creates a
recordset filtered by parameters entered into a form that opens the report
and then use that recordset as the source query for all the DCount
statements that fill the TextBoxes of my report?
I hope this makes sense. The help file for DCount just says that I can use
a table or query for the <domain> parameter (nothing about a recordset).
John
--
-------------------------------------------------------
John S. Ford, MD, MPH
Assistant Professor of Medicine
David Geffen School of Medicine at UCLA
Harbor-UCLA Medical Center
(e-mail address removed)
http://califmedicineman.blogspot.com
Instead, it has a large number of TextBoxes that are populated using
different DCount statements that use queries.
Can I put some code in the OnOpen event of the report that creates a
recordset filtered by parameters entered into a form that opens the report
and then use that recordset as the source query for all the DCount
statements that fill the TextBoxes of my report?
I hope this makes sense. The help file for DCount just says that I can use
a table or query for the <domain> parameter (nothing about a recordset).
John
--
-------------------------------------------------------
John S. Ford, MD, MPH
Assistant Professor of Medicine
David Geffen School of Medicine at UCLA
Harbor-UCLA Medical Center
(e-mail address removed)
http://califmedicineman.blogspot.com