verify username and password using VB6 and msaccess Archived to Disk
hi to all, i'm not good in programming but i need to have a program that would verify the username and the password of the user, if he or she is allowed to use the LAN. Pls help!!
thnx in advance
15-05-2002 at 06:36 AM
|
king910 Level: Guest
Re: verify username and password using VB6 and msaccess Archived to Disk
quote:mike wrote:
hi to all, i'm not good in programming but i need to have a program that would verify the username and the password of the user, if he or she is allowed to use the LAN. Pls help!!
thnx in advance
Use the GetUserName() API function.
If you need the code then please write.
Rgds,
Sunil
29-05-2002 at 09:02 AM
|
mike Level: Trainee Registered: 20-03-2006
Re: verify username and password using VB6 and msaccess Archived to Disk
hi Sunil, please send me the code that you have. i need it badly for my thesis. and if you have some references please send it also. thnx
mike
01-06-2002 at 05:36 PM
|
JLRodgers Level: Moderator Registered: 04-04-2002 Posts: 1616
Re: verify username and password using VB6 and msaccess Archived to Disk
Since I was here...
Private Declare Function GetUserName Lib "advapi32.dll" Alias "GetUserNameA" (ByVal lpBuffer As String, nSize As Long) As Long
Private Sub Form_Load()
Dim strUserName As String
strUserName = String(254, Chr(0))
GetUserName strUserName, 254
strUserName = Left(strUserName, InStr(1, strUserName, Chr(0)) - 1)
End Sub