Start New Discussion within our Software Development Community

Hello guys, I'm new to vb 2010 and it screws me alot...
can you please help me to code my login form containing 2 textboxes: usrn and pass. my database Account has two columns, namely Username and Password...
one thing is, I thought it was the same as Vb 6.0, but i was blanked when i've started using vb 2010. when i add data source to my vb application, i thought it was already done, but when i run the program, there's no change even i type wrong username and password combinations. I'm sorry, i just went blank...and i badly need your help now :-/

Using This you can find a string.

Try something like this in a connect button click:

    Dim con As New OleDBConnection(Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\myFolder\myAccess2007file.accdb;Jet OLEDB:Database Password=" & txtPassword.Text & ";")   'Assuming the password textbox is name txtPassword.
Catch ex As Exception
End Try
This article has been dead for over six months. Start a new discussion instead.