Separate it:
Code:Do While Not rsP.EOF sLT = sLT & rsP![Name] & vbNewLine iCount = iCount + 1 rsP.MoveNext If rsP.RecordCount Mod 5 Then ' every 5th time only sLT = sLT & "..." End If Loop
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 6 of 6
Thread: Do while loopThreaded View
Tags for this Thread |
Click Here to Expand Forum to Full Width |