I'm confused. Where is your first and last name stored that you will be retrieving it from?
>Hi Tracy,
>
>I wanted the actual name for the Header in intellisense. This code still returns the same as ID() does - it gave me the same string - not my actual First and Last Name.
>
>>>Hi everybody,
>>>
>>>How can I get my full user's name instead of what ID() function returns?
>>>
>>>Thanks in advance.
>>
>>do you mean the NT username?
>>
>>(it's also here:)
>>
http://support.microsoft.com/kb/139625>>
>>
>>
>>*--George: dbfForums 2007
>>*---+ Get Windows NT Username
>>private lcUserIDBuffer, lnBufferSize, RetVal
>>
>>RetVal = 0
>>lcUserIDBuffer = Space(25)
>>lnBufferSize = 25
>>
>>Declare Integer GetUserName In Win32API As GetName;
>> String @lcUserIDBuffer,;
>> Integer @lnBufferSize
>>
>>RetVal = GetName(@lcUserIDBuffer, @lnBufferSize)
>>
>>lcNTUsername = Left(lcUserIDBuffer, lnBufferSize-1)
>>
>>If empty(lcNTUsername)
>> lcNTUsername = "Unknown"
>>ENDIF
>>?lcNTUsername
>>*---+ Username retrieved.
>>
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"