I am not ending the Select statement below correctly - can someone help? "WHERE (((tblUsers.UserID)='"&[CurrentUser]))&"'"
Also I am trying to query the currentuser to find who signed in for the approval limits. Can I use currentuser in the Select Case below?
Set rst = CurrentProject.Connection.Execute("SELECT tblUsers.MgrID, tblSourcingManagers.SourcingMgrLast" & _
"FROM tblSourcingManagers INNER JOIN tblUsers ON tblSourcingManagers.SourcingMgrID = tblUsers.SourcingMgrID" & _
"WHERE (((tblUsers.UserID)='"&[CurrentUser]))&"'"
Select Case CurrentUser
Case "SM"
ApprovalLimit = 300000
Case "DIR"
ApprovalLimit = 1500000
Case "VP1"
ApprovalLimit = 3000000
Case "EVP"
CanApprove = True
Exit Function
Also I am trying to query the currentuser to find who signed in for the approval limits. Can I use currentuser in the Select Case below?
Set rst = CurrentProject.Connection.Execute("SELECT tblUsers.MgrID, tblSourcingManagers.SourcingMgrLast" & _
"FROM tblSourcingManagers INNER JOIN tblUsers ON tblSourcingManagers.SourcingMgrID = tblUsers.SourcingMgrID" & _
"WHERE (((tblUsers.UserID)='"&[CurrentUser]))&"'"
Select Case CurrentUser
Case "SM"
ApprovalLimit = 300000
Case "DIR"
ApprovalLimit = 1500000
Case "VP1"
ApprovalLimit = 3000000
Case "EVP"
CanApprove = True
Exit Function