VB.Net | How To Create Login Form in Visual Basic.Net with MS Access 2010 Database |with source code

Поделиться
HTML-код
  • Опубликовано: 11 дек 2024

Комментарии • 31

  • @johnmarkrodilla6806
    @johnmarkrodilla6806 2 месяца назад

    Pano naman pag mag create ng account na maaadd sya ng kusa sa msaccess db?

  • @leslieannmila
    @leslieannmila Год назад

    Bakit po failed to connect to database lang lumalabas?

  • @genesiscabanog8745
    @genesiscabanog8745 2 года назад

    unsa naa sa form2 nimo nikalit man gud ka ug lukso
    then pag log in nako admin dili man marecord sa microsoft access username ug password walay records

  • @siyan6839
    @siyan6839 Год назад

    Hello po, pwede humingi ng installer sa MS Access 2010 Database?

  • @christianangelloflores6442
    @christianangelloflores6442 3 года назад +1

    panp gagawin pag failed to connect to database

  • @moriesbautista2228
    @moriesbautista2228 2 года назад

    bakit my error ako sa form2.show()

  • @lfggghsbjvnnso8414
    @lfggghsbjvnnso8414 3 года назад

    Hi pano pag ang lumalabas ay "failed to connect to database" ? Saan ang problem po?

  • @ven9736
    @ven9736 2 года назад

    Hi po. Pwede po ba mahingi kung saan po kayo nag download ng ms access 2010?

  • @franzmclay
    @franzmclay Год назад

    FAILED TO CONNECT TO DATABASE bat ganyan lumalabas paps? Please pa help naman, di ko nakikita ang mali eh

  • @augusttanjuakio5064
    @augusttanjuakio5064 2 года назад

    Hi sir pwed po ako magpa program ng legal document system

  • @husainirazuan8369
    @husainirazuan8369 2 года назад

    Thank you so much for the knowledge you have poured. But I have a question for you, there is no error but why if I press the Login button, the message box issues "Failed to connect to database .."? even though I've added the source already. Please state your help if you don't mind. Thanks again. :)

    • @husainirazuan8369
      @husainirazuan8369 2 года назад

      Maybe I failed to connect to database is because my Dim sql As String is not follow my actually table name. I have no error this time. Thank you for your sharing. Have a nice day Sir. :)

    • @junrylremoto5654
      @junrylremoto5654 2 года назад

      how?

    • @junrylremoto5654
      @junrylremoto5654 2 года назад

      nag failed to connect database pa rin sakin

  • @markanito5981
    @markanito5981 3 года назад

    Hello po. Sinunod ko naman po lahat pero database connection error parin. Pa help po

  • @daviemartinez4109
    @daviemartinez4109 Год назад

    failed to connect to database pa rin

  • @rohitangadi3764
    @rohitangadi3764 2 года назад

    Failed to connect data base always occurring

  • @johndarrylceblano6742
    @johndarrylceblano6742 2 года назад

    Sir, waray ka?

  • @jhonpatrickcajuguiran1292
    @jhonpatrickcajuguiran1292 2 года назад

    0:47 Hello po sir new subscriber po, pwede po makita dito paano nyo po ginawa yung ordering system?

  • @johnmichaellago3238
    @johnmichaellago3238 2 года назад

    Username and password do not match po

  • @christianlegaspi7404
    @christianlegaspi7404 3 года назад

    pwedeng makahingi ng installer lods??

  • @bpoLBarrientos
    @bpoLBarrientos 3 года назад

    PAPS "FAILED TO CONNECT TO DATABASE" bkt po ganun

    • @husainirazuan8369
      @husainirazuan8369 2 года назад

      Hi, have you found the solution?

    • @miriampidul5375
      @miriampidul5375 Год назад

      Imports System.Data.OleDb
      Public Class Form1
      Private Sub btnLogin_Click(sender As Object, e As EventArgs) Handles btnLogin.Click
      Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\176\Desktop\login.mdb;"
      Dim query As String = "SELECT * FROM Users WHERE Username=@Username AND Password=@Password"
      Using connection As New OleDbConnection(connectionString)
      Dim command As New OleDbCommand(query, connection)
      command.Parameters.AddWithValue("@Username", txtUsername.Text)
      command.Parameters.AddWithValue("@Password", txtPassword.Text)
      connection.Open()
      Dim reader As OleDbDataReader = command.ExecuteReader()
      If reader.Read() Then
      MessageBox.Show("Login successful!")
      Me.Hide()
      Form2.Show()
      Else
      MessageBox.Show("Invalid username or password.")
      End If
      reader.Close()
      connection.Close()
      End Using
      End Sub
      End Class