just3082
asked on
Need help with Authentication in Outlook Forms
Have a form that I have created in Outlook 2000 Forms, I have a field that is a combo box with Approved and Denied as values
I only want a specific user to have access to change this value, What code would I need to accomplish this ?? I read something earlier about enabling a combo box when a specified had the form open, but there were no specfics....
Any help would be greatly appreciated.
Just3082
I only want a specific user to have access to change this value, What code would I need to accomplish this ?? I read something earlier about enabling a combo box when a specified had the form open, but there were no specfics....
Any help would be greatly appreciated.
Just3082
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Any help ???
ASKER
Thanks ..
This is what I have right now, however I keep receiving syntax errors: at line 1 and 2
Declare Function GetUserName Lib "advapi32.dll" Alias _"GetUserNameA" (ByVal lpBuffer As String, nSize As Long) _As Long
Dim StrUserNameFull As String
Dim StrLength As Long
Dim Success As Long
Dim StrUserName as String
StrLength = 199
StrUserNameFull = String$(200, 0)
Success = GetUserName(StrUserNameFul
If Success <> 0 Then
StrUserName = Left$(StrUserNameFull,StrL
Else
StrUserName = ""
Endif
Label50.Caption = StrUserName
If Label50.Caption = "jdoe" Then
combobox17.text = enable
else
End if
End Sub