Following is a partial function. The 'for next' methods works, but of course it only located 4 records (there are many more). The 'while when' methol freezes on line"If InvPaymentsRST.NoMatch = False Then". The for next code is:
For i = 1 To 4
InvPaymentsRST.FindNext "fDateReceived >= #" & datePaid & "#"
If InvPaymentsRST.NoMatch = False Then
Debug.Print InvPaymentsRST![fLngInvNo]
Debug.Print InvPaymentsRST![fDateReceived]
End If ' If Not InvPaymentsRST.NoMatch Then
Next
The while wend code is:
While InvPaymentsRST.EOF = False
InvPaymentsRST.FindNext "fDateReceived >= #" & datePaid & "#"
If InvPaymentsRST.NoMatch = False Then ' #2
Debug.Print InvPaymentsRST![fLngInvNo]
Debug.Print InvPaymentsRST![fDateReceived]
End If ' If Not InvPaymentsRST.NoMatch Then
Wend
Any help is appreciable.