S
sgross
I've created a form in Access 2003 that uses the Calendar Control. It
grabs a date, then on a Button Click event, the following line is
executed:
DoCmd.OpenReport "Report X", acViewPreview
The report correctly displays the passed Date value. The problem is
that when I print the report, the passed Date value shows up as
#Name?, which means no value was passed.
However, when I change the code to:
DoCmd.OpenReport "Report X", acViewNormal
then the report goes directly to the printer with the correct passed
date value, but I no longer get a screen preview.
So how do I get both the screen view and the printout to both display
the correct date value?
grabs a date, then on a Button Click event, the following line is
executed:
DoCmd.OpenReport "Report X", acViewPreview
The report correctly displays the passed Date value. The problem is
that when I print the report, the passed Date value shows up as
#Name?, which means no value was passed.
However, when I change the code to:
DoCmd.OpenReport "Report X", acViewNormal
then the report goes directly to the printer with the correct passed
date value, but I no longer get a screen preview.
So how do I get both the screen view and the printout to both display
the correct date value?