Hi All
I want an autoexec macro to open a particular form depending on who logs in. This is what I have:
Function StartUp()
If CurrentUser= "John" Then
DoCmd.OpenForm "Johnsform"
ElseIf CurrentUser= "Mike" Then
DoCmd.OpenForm "mikesform"
End If
End Function
Needless to say it does not work. What am I doing wrong?
Thanks for the help.
S.
I want an autoexec macro to open a particular form depending on who logs in. This is what I have:
Function StartUp()
If CurrentUser= "John" Then
DoCmd.OpenForm "Johnsform"
ElseIf CurrentUser= "Mike" Then
DoCmd.OpenForm "mikesform"
End If
End Function
Needless to say it does not work. What am I doing wrong?
Thanks for the help.
S.