"On Error Resume Next" is a way to make sure your code continues even if there is an error, it just skips over it and goes onto the next line of code. The whole routine would complete.
if X = "" Then Exit Sub is actually checking the value of X and if it's blank then STOP and don't do anything further.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.
This thread is now CLOSED. If you wish to comment, start a NEW discussion in
Access Search Seminar.