Hi
I have a form. I call a procedure from my class module after clicking on a buttom. This procedure reads a text file line by line. It calls another function which checks if the present line read has a file path or not. If it does not find a file path I would like to convey the user that there is an error and the control should go to the form by discontinuing the procedure. I tried using "on error goto..." in the function and used the "show method of the form. But the procedure still contiues further.
Please help.
Thanks
I have a form. I call a procedure from my class module after clicking on a buttom. This procedure reads a text file line by line. It calls another function which checks if the present line read has a file path or not. If it does not find a file path I would like to convey the user that there is an error and the control should go to the form by discontinuing the procedure. I tried using "on error goto..." in the function and used the "show method of the form. But the procedure still contiues further.
Please help.
Thanks