DebbieV
06-26-2002, 06:28 AM
My date range shows up in the report on the screen but will not show up on a printed hard copy. I typed the following formula in a unbound text box on the report:
" &[Forms]![formname].[txtMCStartDate] & " and" & [Forms]![formname].[txtMCStopDate]
The form is a swithboard in which I have put text boxes and an option group for user interface. The text boxes are used to filter particular items in the reports selected in the option group. I have put a command button on this form that brings up the selected report. The problem I am having is that when the selected report is printed the date range will not show up at all, but it does appear on the screen when viewing the report.
In my cmdpreview code I have a line of code that reads:
DoCmd.OpenReport strReport, acViewPreview, , strSQL.
Do you think this is why the dates show on the screen and not on the hard copy.?
I attempted to put another cmd button for print, but was unsure of the correct syntex.
Look forward to your response
Debbie
Debbie
" &[Forms]![formname].[txtMCStartDate] & " and" & [Forms]![formname].[txtMCStopDate]
The form is a swithboard in which I have put text boxes and an option group for user interface. The text boxes are used to filter particular items in the reports selected in the option group. I have put a command button on this form that brings up the selected report. The problem I am having is that when the selected report is printed the date range will not show up at all, but it does appear on the screen when viewing the report.
In my cmdpreview code I have a line of code that reads:
DoCmd.OpenReport strReport, acViewPreview, , strSQL.
Do you think this is why the dates show on the screen and not on the hard copy.?
I attempted to put another cmd button for print, but was unsure of the correct syntex.
Look forward to your response
Debbie
Debbie