>I have a report that is populated using strictly local variables. The report is in a for next loop, and the variables get reset after each iteration. In the first iteration through the loop, the report previews just fine, but then the variables seem to disappear after the second iteration, and so on, and the report will not preview. It's as if the variables are not there anymore.
>
>Is there some setting I am missing?
>
>Best,
>
>James M. Weil
Have you tried defining these variables as private before the loop? I think I did see similar problems before and you can either use private variables or form's properties if the first idea will not work.
If it's not broken, fix it until it is.
My Blog