S
Stefan
I have a while loop which loops through a recordset.
How do I end the loop if a certain condition is met.
I have this code in the loop
If Diagnosis = rs.Fields.Item("DX") Then Me!approved = "YES"
If Diagnosis = rs.Fields.Item("DX") Then (what goes here to end the while
loop)
I realize I should be using a find statement instead of a loop but I have
not been able to get the syntax correct. I need this work asap and will work
on correcting the code.
How do I end the loop if a certain condition is met.
I have this code in the loop
If Diagnosis = rs.Fields.Item("DX") Then Me!approved = "YES"
If Diagnosis = rs.Fields.Item("DX") Then (what goes here to end the while
loop)
I realize I should be using a find statement instead of a loop but I have
not been able to get the syntax correct. I need this work asap and will work
on correcting the code.