1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
SQLup = "INSERT INTO Log ( Num, Jour, Heure, Auteur, [Action], Compteur, Libellé, Impact, Type ) "
SQLup = SQLup & "VALUES (time()*1, Date(), time(), '1E-Ecran Présentation', 'Ré-évaluation', 1, "
SQLup = SQLup & "Comments, 'Valeurs', 'LOG');"
SQL = "SELECT ucase(Index) as Indx, Titre, (Estimation + (Estimation * 3/100)) as NewVal FROM Valeurs WHERE (date() - DateEstimation) > 365 ;"
Set Curseur = CurrentDb.OpenRecordset(SQL)
While Not Curseur.EOF
Comments = Curseur.Fields("Indx").Value & " " & Curseur.Fields("Titre").Value & " estimé(e) à " & Curseur.Fields("NewVal").Value & " "
MsgBox "A ré-évaluer : " & Comments, vbInformation, "ScripoGest"
DoCmd.RunSQL (SQLup)
Curseur.MoveNext
Nb = Nb + 1
Wend |