How to leave my script and move on

D

dsmith76

I am executing some script that accesses an access database. Deep within my
code I have coded in a condition such that if a certain value is pulled from
the database I want to halt the code and move further down the web page.
Currently, I am just using response.end, but that means the rest of the html
on my web page is not visible. How can I terminate a script before end of
file and move on to more html on the web page.
Thanks, Dave
 
A

Alex Ivanov

Put the critical code section into a sub or function and then
if condition=true then exit sub

BTW it's an Access group, not asp
 
D

dsmith76

Thanks, I'll do that.

Alex Ivanov said:
Put the critical code section into a sub or function and then
if condition=true then exit sub

BTW it's an Access group, not asp
 
Top