Invisible control on Report
I have a report with an invisible control on it. The report is called Invoice and the control on is is also called Invoice. I have a very strange problem.When I perfom the code given below from a form, without the command for the printing, that is without DoCmd.printout acPages, 1, 1, acLow, 1, True
Then the control becomes visible on the screen.
However, if I include the comand for the printing and click for the event for the code,then
this control is not visible on the screes,
Even though it is printed and I can see it on the paper.I cannot explain myself why the control is not seen the screen but is printed.
My whole code is the folowing
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Dim paymentid As Control
Set paymentid = Forms![FOrderInformation]![paymentid]
paymentid = increment
finvoicedate
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
Dim stLinkCriteria As String
stDocName = “Invoice”
stLinkCriteria = “Paymentid = ” & paymentid
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Reports![invoice]![invoice].Visible = True
DoCmd.printout acPages, 1, 1, acLow, 1, True
How can I make the control visible on the screen ?
i will be grateful for any help