I have adeveloped a time sheet project where each employee time sheet is maintained.Now since i want to use in network when i login to the system with a name for eg Smitha.i want have accessonly to all records by smitha.my project is in vb and ms access please help me
access rights problems
Collapse
X
-
Originally posted by charviI have adeveloped a time sheet project where each employee time sheet is maintained.Now since i want to use in network when i login to the system with a name for eg Smitha.i want have accessonly to all records by smitha.my project is in vb and ms access please help me
suppose you could detect the user profile name, and create a sql statement according to that... -
-
-
In vb.net you can retrieve the username like this:
[code=vbnet]
Declare Function GetUserName Lib "advapi32.d ll" Alias _
"GetUserNam eA" (ByVal lpBuffer As String, _
ByRef nSize As Integer) As Integer
Public Function GetUserName() As String
Dim iReturn As Integer
Dim userName As String
userName = New String(CChar(" "), 50)
iReturn = GetUserName(use rName, 50)
GetUserName = userName.Substr ing(0, userName.IndexO f(Chr(0)))
End Function
[/code]Comment
-
how can i retreive user name in vb6Originally posted by jamesd0142In vb.net you can retrieve the username like this:
[code=vbnet]
Declare Function GetUserName Lib "advapi32.d ll" Alias _
"GetUserNam eA" (ByVal lpBuffer As String, _
ByRef nSize As Integer) As Integer
Public Function GetUserName() As String
Dim iReturn As Integer
Dim userName As String
userName = New String(CChar(" "), 50)
iReturn = GetUserName(use rName, 50)
GetUserName = userName.Substr ing(0, userName.IndexO f(Chr(0)))
End Function
[/code]Comment
Comment