![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm a relative newbie but have developed several Databases *at our organisation. Because of a forthcoming reorganization, there is a need to change the first screen ( what I call splash screen) on a pre- determined date. The splash screen is displays the DB name, version and contact details for support etc. Is there a way to create an autoexec to change the current splash screen to a different one on a date in the future? Thanks Yvonne |
#3
| |||
| |||
|
|
You could create a code module routine. *In your autoexec call a RunCode to run your routine name; ex: SplashForm Public Sub SplashForm() * *If Date() < #7/4/2012 then * * * *Docmd.OpenForm "SplashFormCurrent" * Else * * * *Docmd.OpenForm "SplashFormJuly4th" End Sub |
#4
| |||
| |||
|
|
You could create a code module routine. *In your autoexec call a RunCode to run your routine name; ex: SplashForm Public Sub SplashForm() * *If Date() < #7/4/2012 then * * * *Docmd.OpenForm "SplashFormCurrent" * Else * * * *Docmd.OpenForm "SplashFormJuly4th" End Sub I'm a bit new to writing modules but I created ths:- Public Function Splash() As Boolean * *If Date < #12/2/2012# Then * *DoCmd.OpenForm "frmSplash" * Else * * * *DoCmd.OpenForm "frmSplash2" End If End Function And in the autoexec I had a line o "RunCode" and it failed with. "The expression you entered has a function name *that "MyDatabase" can't find" Can you point me in the right direction again please. Yvonne |
![]() |
| Thread Tools | |
| Display Modes | |
| |