-
March 28th, 2013, 01:39 PM
#1
No value given for one or more required parameters in VB.Net
Dim strConnection As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=F:\TEST\VB.net TEST\WindowsApplication1\WindowsApplication1\SKB.MDB"
Dim Username As String
Dim Password As String
Dim con As OleDbConnection = New OleDbConnection(strConnection)
con.Open()
da = New OleDbDataAdapter("select Username AND Passowrd FROM UserAccount ORDER BY Username", con)
Textbox1.Text = da.Fill(dt)
TextBox2.Text = da.Fill(dt)
' Textbox1.Text = "Username"
'TextBox2.Text = "Password"
If Textbox1.Text = Username And TextBox2.Text = Password Then
Show(MDIParent1)
Else
MsgBox("Please Enter the appropriate Username and Password", MsgBoxStyle.OkOnly)
End If
con.Close()
I mentioned the Code above and getting an Error in "Textbox1.Text = da.Fill(dt)
TextBox2.Text = da.Fill(dt)
Please help me
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|