jeffcullina
Programmer
I have a form button that opens a report. After it does so, it assings a value (the search criteria used to generate the report) to one of the controls on the report. I need to figure out how to refresh the report so that it shows the value that I have assigned. I have tried to repaint, refresh and requery. My code looks like this.
DoCmd.OpenReport stDocName, acPreview, , stWhere
Reports(stDocName).Controls("Path"
.Value = "Test"
DoCmd.RepaintObject acReport, stDocName
The last line does not do anything.
DoCmd.OpenReport stDocName, acPreview, , stWhere
Reports(stDocName).Controls("Path"

DoCmd.RepaintObject acReport, stDocName
The last line does not do anything.