DolphinFan
MIS
I am working on a report with unbound controls (as my data source field names are dynamic). I created the report with the required number of bound controls and have written the appropriate code to open the required record set.<br><br>The problem I have is that the code loops through the entire record set but the report shows only the last record in the record set. <br><br>Could some one please tell me how I can make the report show all the records in the recordset?<br><br>Thanks very much for your time. I am attaching the portioof the code that I use to populate the report controls.<br><br>Thanks.<br><br>Prasad<br>---------------------------------------------------------<br><br>Code<br>------------------------------------------------ <br> <br>rstReport.MoveFirst<br> <br> Do While Not rstReport.EOF <br> <br>For intX = 1 To 24<br>' fill in Standard Values<br> Me("Value" + Format(intX)) = rstReport(intX - 1)<br> Debug.Print "intX, Value/Result"; intX, Me("Value" + Format(intX)), rstReport(intX - 1)<br>Next intX<br> <br>' Move to next record in recordset.<br> <br>Debug.Print "Record position:", rstReport.AbsolutePosition<br> <br>rstReport.MoveNext<br><br>Loop