Link to home
Start Free TrialLog in
Avatar of just3082
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
ASKER CERTIFIED SOLUTION
Avatar of Mob-bom
Mob-bom

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of just3082
just3082

ASKER

This stuff looks great Mob-bom, and I will bookmark it so I can go back later and review it, However right now I am looking for a more direct solution to my problem as I am faced with a deadline...

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(StrUserNameFull,StrLength)
If Success <> 0 Then
   StrUserName = Left$(StrUserNameFull,StrLength)
Else
   StrUserName = ""
Endif
Label50.Caption = StrUserName
If Label50.Caption = "jdoe" Then
combobox17.text = enable
else
End if
End Sub

Any help ???