i am trying to make a simple login form using OleDb
i am getting a single error that the "dr" does not have a constructor
Imports System.data
Imports System.Data.OleDb
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim cn As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Documents and Settings\jensen\My Documents\login.mdb;Persist Security Info=True")
cn.Open()
Dim cmd As New OleDbCommand("Select user,pass,Type from login Where user= '" & tb_user.Text & "' AND pass = '" & tb_pass.Text & "' AND Type= '" & tb_type.Text & "'", cn)
Dim dr As New OleDbDataReader
dr = cmd.ExecuteReader()
dr.Read()
If dr.Read = True Then
MsgBox("verification successfull")
Else
MsgBox("invalid username")
End If
cn.Close()
End Sub
End Class
when the error is clicked it goes to "dim dr as new OleDbDataReader"
please am a beginner
thanks in advance
<EMAIL SNIPPED>