Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
S

Saqib Jabbar

@Saqib Jabbar
About
Posts
3
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Object reference not set to an instance of an object.
    S Saqib Jabbar

    thx daveauld I fix iT!?? Thx ALot!?

    Visual Basic help com

  • Object reference not set to an instance of an object.
    S Saqib Jabbar

    Ur ans was CoOl But if fix the Data Adapter Then It will show another exception in da.fill(dt) //Could not find file 'D:\Login\Login\Login\bin\Debug\login.mdb'.

    Visual Basic help com

  • Object reference not set to an instance of an object.
    S Saqib Jabbar

    Public Class form_login Private Sub btn_login_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btn_login.Click Get_Data() End Sub Public Sub Get_Data() Dim qty As String Dim cons As String qty = "SELECT * FROM LOGIN WHERE USER_ID = @USER_ID AND PASSWORD = @PASSWORD" cons = "Provider=Microsoft.Jet.OLEDB.4.0;data source=login.mdb" Dim con As New OleDbConnection() con.ConnectionString = cons Dim com As New OleDbCommand() com.CommandText = qty Dim da As New OleDbDataAdapter() da.SelectCommand.Parameters.AddWithValue("@USER_ID", txt_user_id.Text)--------error occurs on this line---- da.SelectCommand.Parameters.AddWithValue("@PASSWORD", txt_password.Text) Dim dt As New DataTable da.Fill(dt) If dt.Rows.Count > 0 Then Success.user_id = dt.Rows(0)("USER_ID").ToString Me.Hide() Success.Show() End If End Sub End Class Please help me out of thhis

    Visual Basic help com
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups