Tony,
Thanks for the further explanation of what you are trying to do.
To me, it would seem simpler to directly reference the form criteria
entry for the report. If I understand you correctly, my preferred
method would be to put it directly into the query that the report is
based on, i.e. in the criteria of the text-date field in the query,
put the equivalent of...
Format([Forms]![NameOfForm]![DateCriteriaTextbox],"yyyymmdd")
Otherwise, if you are indeed running the export and optional report
from an event on the form, which one would presume, once again you
could refer once again to the date criteria entered on the form, for
example...
DoCmd.OpenReport "ReportName",,,"[TextDate]='" &
Format(Me.CriteriaBox,'yyyymmdd') & "'"
I can't see at the moment why you want to manipulate the data within
the report itself at print time.
- Steve Schapel, Microsoft Access MVP