I've created code in MS Access that reads and stores various data elements from a web page.
But, sometimes, that page (result from filling out a form) does not have any data. In which case, a message shows up.
Here's a portion of the HTML:
<body onLoad="onLoad()">
<div id="wrap">
<!--header start -->
<div id="custom_header">
<div style="width:370px; text-align:left; margin:auto 0px; padding-top:10px; padding-left:10px;">
<p style="font-size:24pt; font-weight:bold; color: #fff; text-align:center; font-family: Tahoma, Geneva, sans-serif; line-height:24pt">
My First Line </p>
<p style="font-size:18pt; font-weight:700; color: #fff; text-align:center; font-family: Tahoma, Geneva, sans-serif; padding-top:5px">
My Second Line <br />
<br/>
</p>
<br />
</div>
</div>
<!--header end -->
<div id="main">
<div id="maincontent">
<div class="ui-corner-all warning">
<h3>Your Business Phone Number <u>8005551212</u> is not being found!</h3>
</div><br />
Open in new window
This tag: <div class="ui-corner-all warning">
ONLY shows up in the document when the form returns no data.
what vba can I use to search the IE DOM to see if that tag/class exists?)
I feel like it should be something like one of these...
.getElementByID
.getElementsByTagName
.getElementsByClassName
But, I'm stumped.
Any help?