Get EUID (Enterprise User ID) from current logged user.

R

Ricardo

Is there any way to get (in vba) the EUID (Enterprise User ID) from the
current logged user??

I am aware of Application.Profiles.ActiveProfile, and properties Login and
LoginType (and table MSP_WEB_RESOURCES), but it seems that it's not working
always....
Can anyone tell me a way do get to this EUID from Project Professional ??

Thanks.
Ricardo Drizin
 
R

Ricardo

My mistake... in fact it was working correctly, and it was another
problem...

If someone is interested, my query/code:

strSQL = "SELECT DISTINCT(RES_EUID) FROM MSP_WEB_RESOURCES WHERE "
Select Case Application.Profiles.ActiveProfile.LoginType
Case 1
strSQL = strSQL & " (WRES_USE_NT_LOGON = 1 AND
WRES_NT_ACCOUNT = '" & GetNTUserName() & "' )"
Case 2
strSQL = strSQL & " (WRES_USE_NT_LOGON = 0 AND RES_NAME
= '" & Application.userName & "')"
Case Else
MsgBox "Error - Could not Identify Logged Used"
Exit Function
End Select

Att,
Ricardo Drizin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top