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 / February 2005

Tip: Looking for answers? Try searching our database.

Writing a Macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
nmarano - 25 Feb 2005 13:23 GMT
I have an app that needs to be archived pretty often.  We are currently have
to go in, open the form,  and click on the button which calls a module, that
runs the function slf_monthend().  Can someone tell me if I can simply set up
a macro which opens the module, and runs the code of the slf_monthend()
function?  Any help would be appreciated
Thanks
Steve Schapel - 25 Feb 2005 18:10 GMT
Nmarano

Yes, this is certainly possible.  I guess the applicable macro action
would be RunCode.  You could have a simple one-field one-record table
where you store the date if the last time it was run, and then, at a
suitable time (for example every time the database is opened) have your
macro check the date in this table to determine whether it was due for
the function to be run again.  But anyway, I would need more specific
detail before I could be difinitive.

Signature

Steve Schapel, Microsoft Access MVP

> I have an app that needs to be archived pretty often.  We are currently have
> to go in, open the form,  and click on the button which calls a module, that
> runs the function slf_monthend().  Can someone tell me if I can simply set up
> a macro which opens the module, and runs the code of the slf_monthend()
> function?  Any help would be appreciated
> Thanks
 
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.