Dim A
For Each A In WebBrowser.Document.All
If UCase(A.tagName) = "A" Then
sql = "insert into spidedata (link,title) values ('" & A.href & "','" & A.innerText & "')"
conn.Execute sql
DoEvents
Text1.Text = Text1.Text + 1
End If
Next
For Each A In WebBrowser.Document.All
If UCase(A.tagName) = "A" Then
sql = "insert into spidedata (link,title) values ('" & A.href & "','" & A.innerText & "')"
conn.Execute sql
DoEvents
Text1.Text = Text1.Text + 1
End If
Next