fridom
my apologies, I didn't have enough time to reply to your last post.
Once you enter a url, then click on a link on that page, the url should change,
this is how you can check the url name:
assuming web.LocationURL is the IE control name of the url,
http://www.experts-exchange.com/Microsoft/Development/MS_Access/Q_22086913.htmlTo check if the "new" url after the click is
http://this_page_does_not_exist,
use this code:
if instr(web.LocationURL,"thi
s_page_doe
s_not_exis
t") > 0 then
'the url has the words: this_page_does_not_exist
'do what you need to do, when the url contains this_page_does_not_exist
endif
However, if this message was in the body of the url, then use the second code
these are the basics, and you will have to modify them slightly to suite your requirement.
jaffer