Create Module:
Code:
Option Compare Database
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Function UserNameWindows() As String
Dim lngLen As Long
Dim strBuffer As String
Const dhcMaxUserName = 255
strBuffer = Space(dhcMaxUserName)
lngLen = dhcMaxUserName
If CBool(GetUserName(strBuffer, lngLen)) Then
UserNameWindows = Left$(strBuffer, lngLen - 1)
Else
UserNameWindows = ""
End If
End Function
'Sub test()
'MsgBox UserNameWindows
'End Sub
Call in text box on login screen remove the ability to edit entries with:
With this and some googling you should be able to get pretty far, you can also have a 3rd table to log each time a user opens it with a time stamp for "auditing"
Don't use passwords, anyone with half a brain can find your back end and open the table, and remove any masking you have on text, if you try to protect your back end like with passwords the other users will not be able to access it through the front end, and if you write the access within the code on the front end they can just open your modules and read the passwords.