Hi, I have a:
Do Until objRS.EOF
....
.....
objRS.moveNext
Loop
I would like to skip the records if a condition is met, something like so:
Do Until objRS.EOF
If portal=1000 Then
Dim names
names = names & "|" & objRS("ProductName")
' below I would like to skip the look to the next recode if name is already in the string?
If InStrRev(names,objRS("ProductName"))>0 Then
objRS.moveNext
End If
End If
....
.....
objRS.moveNext
Loop
If portal=1000 Then
Dim names
names = names & "|" & objRS("ProductName")
If InStrRev(names,objRS("ProductName"))>0 Then
'objRS.moveNext
'Loop
End If
End If
Do Until objRS.EOF
....
.....
objRS.moveNext
Loop
I would like to skip the records if a condition is met, something like so:
Do Until objRS.EOF
If portal=1000 Then
Dim names
names = names & "|" & objRS("ProductName")
' below I would like to skip the look to the next recode if name is already in the string?
If InStrRev(names,objRS("ProductName"))>0 Then
objRS.moveNext
End If
End If
....
.....
objRS.moveNext
Loop
If portal=1000 Then
Dim names
names = names & "|" & objRS("ProductName")
If InStrRev(names,objRS("ProductName"))>0 Then
'objRS.moveNext
'Loop
End If
End If