Read a lot first and make a backup of the database before starting to set
security. Write your passwords down and place in an envelope that you lock
up.
Ron,
Try this. Got this code a long time ago from a newsgroup. It will get you
the name of the user logged into a computer on a network.
****Code
Private S1 As String
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA"
(ByVal lpBuffer As String, nSize As Long) As Long
Public Function FindUserName() As String
' Function that returns the name of the currently logged on user
' Example - MyString = FindUserName
S1 = Space(512)
GetUserName S1, Len(S1)
FindUserName = Trim$(S1)
FindUserName = Left(FindUserName, Len(FindUserName) - 1)
Read a lot first and make a backup of the database before starting to set
security. Write your passwords down and place in an envelope that you
lock
up.
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.