NdaX404

login

May 4th, 2020
569
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.35 KB | None | 0 0
  1.  Dim o As Object
  2. Set o = CurrentDb.OpenRecordset("SELECT * FROM TBL_DataPelanggan WHERE Username='" & TxtUsername & "'  AND Password='" & TxtPassword & "'")
  3.  If o.RecordCount > 0 Then
  4.         MsgBox ("Login Sukses")
  5.             DoCmd.OpenForm "FRM_Transaksi", acNormal
  6.             DoCmd.GoToRecord , , acNewRec
  7.  Else
  8. MsgBox "Password/Username Salah"
  9. EndIf
Add Comment
Please, Sign In to add comment