I am working on a tight deadline project of VB6.0 using OE entry ocx for version 2014. Everything is working except sometimes looping through OE details. Sometimes it keeps looping and loops back of the records. Below is the code that causes problem. vDView is the object for OE details. The .Fetch statement seems to fetch backward after the cursor gets to the last OE detail line. That causes endless looping.
Any input or thought where I might be wrong? Any input is highly appreciated.
vDView.Init
vDView.GoTop
vDView.Read
If vDView.Exists Then
Do Until vDView.Fetch = False
ItemQuery = vDView.Fields.FieldByName("ITEM").Value
If ItemQuery <> NSQUOTE Then 'skip NSQUOTE look up
'do my stuff here
End if
Loop
End If