>
> 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