You have defined Names field:
Dim names(5) As String
but you loop from 0 to 5, that means Names field must be defined as:
Dim names(6) As String
Check also other fields.
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 15 of 18
Thread: Inadvertent looping!Threaded View
|
Click Here to Expand Forum to Full Width |