Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / January 2007

Tip: Looking for answers? Try searching our database.

Displaying the date when a macro was last run

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
John V - 29 Jan 2007 16:26 GMT
I have a macro set up to update information from a server. How can I show on
the switchboard when the macro was last run?
Steve Schapel - 31 Jan 2007 19:05 GMT
John,

I would think the date/time of the latest run should be stored in a
table somewhere.  You could make a simple table with one field and one
record, specifically for this purpose.  Then, add an action to the macro
itself to run an Update Query to change the value of this date/time to
Now().  And then, I suppose, bind the switchboard to this table, or add
this table to the query (if any) that the switchboard is currently bound
to, or put an unbound textbox on the switchboard form and use the
DLookup() function to retrieve the date/time value from the table.  Hope
that makes  sense.

Signature

Steve Schapel, Microsoft Access MVP

> I have a macro set up to update information from a server. How can I show on
> the switchboard when the macro was last run?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.