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 :-/
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