Just wanted to ask a quick question on if this will work or not.
I have a while not EOF look I use when reading through a recordset. The first thing I check is to see if a certain field has a certain value and if it does, I want to skip that record and start the while loop over again.
Can I have a WEnd command in an IF statement to force the loop to break out early? So basically have a WEnd at the normal end of the loop but also embed one in the IF statement so it breaks starts the loop over early sometimes?
If not, what's the best way to do something like this? Normally I could just skip the record and move on but there's alwas the chance of getting two next to each other and it would only skip one. And if one is the last record and I movenext and continue I could be EOF and then that'd kill the rest of the stuff.
Just brainstorming this one but looking for advice.
Thanks.
I have a while not EOF look I use when reading through a recordset. The first thing I check is to see if a certain field has a certain value and if it does, I want to skip that record and start the while loop over again.
Can I have a WEnd command in an IF statement to force the loop to break out early? So basically have a WEnd at the normal end of the loop but also embed one in the IF statement so it breaks starts the loop over early sometimes?
If not, what's the best way to do something like this? Normally I could just skip the record and move on but there's alwas the chance of getting two next to each other and it would only skip one. And if one is the last record and I movenext and continue I could be EOF and then that'd kill the rest of the stuff.
Just brainstorming this one but looking for advice.
Thanks.
Comment