I created a form which loads values into a report.
When the report opens in 'Report' mode - acViewReport - I can see the values I set for the text boxes in the report.
However when I press 'Print Preview', the values in the report disappear and all I can see are the 'label text' for the text boxes I setup in the Report
-
The code in the form that activate the report is
For this example, the only control on the report is a single text box called "Text0". and the only control on the form is a command button called "Command0"
Please could somebody help, as I've built up two large reports using loads of text boxes, it all works fine, but I need to be able to print, and when using print preview all the values disapper - I tried just clicking print too, but that too doesn't work - the values are not getting printed.
When the report opens in 'Report' mode - acViewReport - I can see the values I set for the text boxes in the report.
However when I press 'Print Preview', the values in the report disappear and all I can see are the 'label text' for the text boxes I setup in the Report
-
The code in the form that activate the report is
Code:
Private Sub Command0_Click()
Dim reportname As New Report
DoCmd.OpenReport "dfsdf", acViewReport, , , acWindowNormal
Set reportname = Reports![dfsdf]
reportname!Text0.SetFocus
reportname!Text0.Text = "sdfsd"
End Sub
For this example, the only control on the report is a single text box called "Text0". and the only control on the form is a command button called "Command0"
Please could somebody help, as I've built up two large reports using loads of text boxes, it all works fine, but I need to be able to print, and when using print preview all the values disapper - I tried just clicking print too, but that too doesn't work - the values are not getting printed.