Solved Log time and date a query was last run? (1 Viewer)

Number11

Member
Local time
Today, 09:33
Joined
Jan 29, 2020
Messages
607
Code:
Public Function fncLog() As Boolean
    CurrentDb.Execute "insert into tblLog(QueryName, [Last Run]) " & _
        "select '" & CurrentObjectName & "'," & Format(Now(), "\#mm\/dd\/yyyy hh\:nn\:ss\#")
    fncLog = True
End Function
That worked thanks
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:33
Joined
May 7, 2009
Messages
19,230
you're welcome.
 

Users who are viewing this thread

Top Bottom