Reading through file names in a directory and want to exit the loop after processing the first file (for test purposes)
Did not work.
I had to change the code to:Do While FileName <> "" Or RecordCount = 1
Did I write it wrong the first way or are multiple conditions now allowed? I didn't get a compile error.Do While FileName <> "" If RecordCount = 1 Then Exit Do End If
Bookmarks