borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Master/Detail form)Next Topic (Updating list bos) New Topic New Poll Post Reply
AndreaVB Forum : Database : verify username and password using VB6 and msaccess
Poster Message
mike
Level: Trainee

Registered: 20-03-2006

icon 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
View Profile Send Email to User Show All Posts | Quote Reply
king910
Level: Guest

icon 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
| Quote Reply
mike
Level: Trainee

Registered: 20-03-2006
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1616
icon 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

02-06-2002 at 12:42 AM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : Database : verify username and password using VB6 and msaccess
Previous Topic (Master/Detail form)Next Topic (Updating list bos) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder