P
Pwyd
Public Function AdminCheck()
Dim userID As String * 20
userID = GetUserID()
If userID = xxxxxx Or userID = xxxxxx1 Or userID = xxxxxx2 Or userID =
xxxxxx3 Then
DoCmd.RunMacro (toOpeningScreen)
Else
DoCmd.RunMacro(toOpeningScreenProcessor)
End If
End Function
Two questions:
Why does it give an error for the second DoCmd line?
If i wanted to call this function from startup, can i put that in the
Startup line in the
database Startup menu option, or do i need to make a hidden form that loads
the function in a macro?
Dim userID As String * 20
userID = GetUserID()
If userID = xxxxxx Or userID = xxxxxx1 Or userID = xxxxxx2 Or userID =
xxxxxx3 Then
DoCmd.RunMacro (toOpeningScreen)
Else
DoCmd.RunMacro(toOpeningScreenProcessor)
End If
End Function
Two questions:
Why does it give an error for the second DoCmd line?
If i wanted to call this function from startup, can i put that in the
Startup line in the
database Startup menu option, or do i need to make a hidden form that loads
the function in a macro?