Watch video belowSample Codes Here:(frmLogin)Private Sub cmdL_Click()Dim rs As New ADODB.Recordsetrs.Open "Select * from tblLogin", con, adOpenDynamicIf Not rs.EOF ThenIf txtU.Text = rs!User And txtP.Text = rs!Pass ThenMsgBox "Welcome User", vbInformation, "Message"Unload MefrmSample.ShowElseMsgBox "Access Denied!", vbCritical, "Message"End IfEnd IfEnd Sub(frmCreate)Private Sub cmdL_Click()Dim a As Stringa = MsgBox("Are you sure you want to Create Account?", vbQuestion + vbYesNo, "Message")If a = vbYes Thencon.Execute "insert into tblLogin values('" & txtU.Text & "','" & txtP.Text & "')"MsgBox "Saved!", vbInformation, "Message"txtU.Text = ""txtP.Text = ""Exit SubEnd IfEnd Sub
Blog Post
Biyernes, Marso 6, 2015
Visual Basic 6.0 : Advance Login System
Mga etiketa:
YouTube Video Tutorial
Mag-subscribe sa:
I-post ang Mga Komento (Atom)
0 (mga) komento:
Mag-post ng isang Komento