Unanswered: preview reports from a multi selection list box
I have a form where I print reports from selections in a list box. It works fine.
I have the need to preview the reports in a similar manner. I would like to be able to select reports(actually different instances of the same report) and have them display one at a time. Closing one opens the next. Here is the guts of the code.
stDocName = "Mechanical"
If Me![List4].ItemsSelected.Count > 0 Then
MsgBox "Ready to Print"
For Each well In Me![List4].ItemsSelected
[Forms]![review form]![List4] = [List4].ItemData(well)
DoCmd.OpenReport stDocName, acNormal, "", "[Well Data Master]![well name]=[Forms]![Review form]![List4]"
This code works well and loops through the multi select list box fine for printing. Just changing the docmd.open report to acpreview doesn't work.
It just displays the first report and wont go any further. I have been unable to find any help on this. Any help would be greatly appreciated.