OK got ya about the modules. i already have a swictboard which is always open
and the event timer is used as well as the form open event, plus the Db never
gets closed or opened, once i have finished designing the Db and open it, it
will never be closed.
"Chris O'C via AccessMonster.com" wrote:
> Once you have a list of procedures you want to run only on the last day of
> the month, create a form, set it as your startup form, and in the form_open
> event put this code:
>
> if (Date() = DateSerial(Year(Date()),(Month(Date())+1),0)) then
> call function1
> call function2
> 'etc
> end if
>
> docmd.openform "switchboard"
> docmd.Close acForm, me.name
>
>
> Every time the db is opened it opens the form, checks if today is the last
> day of the month and if it is, runs the functions, then opens the switchboard
> and closes the startup form. If it isn't the last day of the month it opens
> the switchboard and closes the startup form.
>
> Chris
> Microsoft MVP
>
>
> Chris O'C wrote:
> >You can't run a module, it's a container object. You can run the procedures
> >contained in the modules but you have to know the names of those procedures.
> >
> >Chris
> >Microsoft MVP
> >
> >>Hello all
> >>
> >>I need to find a way to run a module on the last day of every month, But
> >>without using the "On Timer" event. Since it is all ready being used. The
> >>Module is called KPICalStep1.
>
> --
> Message posted via AccessMonster.com
> http://www.accessmonster.com/Uwe/For...dules/200809/1
>
>