form load event on the splash form:
Dim rsDate As DAO.Recordset
Dim sd As Date
Set rsDate = CurrentDb.OpenRecordset("timesearch")
If rsDate.RecordCount = 0 Then
Exit Sub
End If
rsDate.MoveFirst
Do Until rsDate.EOF
sd = rsDate("fldTime")
If DateDiff("d", Now(), sd) >= "60" Then
MsgBox "Your last Update was 60 days from " & Now()
End If
rsDate.MoveNext
Loop
rsDate.Close
Set rsDate = Nothing
|