G
Guest
I have the following code in a command button on my form. It's shows a
preview of a report that is created from my current record on my form. If I
open my form and then change some data in a record and then click to preview
the report it doesn't show the change I made. But if I close the report
preview and go back to the form and then click on preview report again the
change is there. Why won't it show the change the first time I click to
preview?
Dim stDocName As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMennuVer70
stDocName = "CorrectiveAction"
DoCmd.OpenReport stDocName, acPreview, "qryCAFilter"
preview of a report that is created from my current record on my form. If I
open my form and then change some data in a record and then click to preview
the report it doesn't show the change I made. But if I close the report
preview and go back to the form and then click on preview report again the
change is there. Why won't it show the change the first time I click to
preview?
Dim stDocName As String
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMennuVer70
stDocName = "CorrectiveAction"
DoCmd.OpenReport stDocName, acPreview, "qryCAFilter"