Thank you Alex & Chris !
I'm using the following code but it Not working very well. Some times it
works some
other times doesn't the code is the following:
Private Sub Command17_Click()
On Error GoTo Error_local
Const strWindow As String = "IEFrame" ' <<
http://www.mvps.org/access/api/api0013.htm
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim strUrl As String
Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("tblWebs", dbOpenDynaset)
rst.MoveLast
rst.MoveFirst
If rst.RecordCount = 0 Then
MsgBox "No data", vbExclamation
GoTo Close_Local:
End If
Debug.Print "************************************"
Do Until rst.EOF
strUrl = rst.Fields("Http")
strUrl = Replace(strUrl, "#", "")
DoEvents
Application.FollowHyperlink strUrl, , NewWindow:=True
If fCloseApp(strWindow) = True Then '<<
http://www.mvps.org/access/api/api0025.htm
' MsgBox "se ha cerrado la ventana", vbInformation
Else
MsgBox "No se ha cerrado la ventana", vbCritical
End If
rst.Edit
rst.Fields("UltimoAcceso") = Now '<< Last date opened WEB page
rst.Update
GoTo Next_Local
Error_local:
Debug.Print strUrl
If MsgBox("Quieres borrar el siguiente registro", vbYesNo +
vbQuestion + vbDefaultButton2) = vbYes Then
rst.Edit
rst.Delete
rst.Update
End If
Next_Local:
rst.MoveNext
Loop
Close_Local:
Set rst = Nothing
Set dbs = Nothing
End Sub
'******** end code ***********
I have a table with many webs PAGES and I want to check all of them.
Information in the table is like this:
http://www.accessmonster.com
Why my code is Not running well ???
(I mean after same time it stops)