Each user in the employee table (linked from an odbc connection) has a unique userid. I would like to use this userid to see if a user is a team lead using the windows login.
This is what I have on a form load event
I am trying to enter the value from my query into the variable user_priv but am getting a syntax error.
Anyone have any ideas?
This is what I have on a form load event
Code:
Dim strUser As String
Dim user_priv As String
strUser = fWin2KUserName
user_priv = DoCmd.RunSQL "Select team_lead_flag from qa_employee_list where userid = " & strUser
I am trying to enter the value from my query into the variable user_priv but am getting a syntax error.
Anyone have any ideas?