Hi Andrews,
>Thanks for your help.
>I wonder know if you explain me; where should I put the code....???
I use that code in the Init event of my Login form. The next line is:
ThisForm.txtUserId.Value = lcUserId
This makes the Network login UserId the default.
HTH,
Bill Armbrecht
VFP MCP