QUOTE(gjay @ 9 Oct, 2008 - 08:15 PM)

CODE
Private Sub Button1_Click(ByVal sender As System.Object. ByVal e As System.EventArgs) Handles Button1.Click
Dim Student, geejay As String
If Me.TextBox1.Text="Student" And Me.TextBox2="geejay" Then
MsgBox ("You may Start using the system")
me.Hide()
Form2.Show()
Else
MsgBox("Wrong Username/PAssword",1)
End If
End Sub
your code looks good for me. Sorry I can't help.
btw, i need some help for login form using Access database.
I have been doing this so far and can't go any further since I don't have any idea how to check the database and compare it one by one.
This is my code
CODE
Dim conn As OleDb.OleDbConnection
Dim connectionString As String = "Provider=Microsoft.Jet.OLEDB.4.0;_
Data Source=.\Resources\Respondent.mdb;Jet OLEDB:Database Password=xxx"
conn = New OleDb.OleDbConnection(connectionString)
conn.Open()
//This is where I don't have any idea how to get the data from access, compare
//the username, check the password and compare them, pass it back to the
//VB2005 and do the autentification process
conn.Close()
conn.Dispose()
I'm not sure how to compare queries with text component in the textbox.
Any idea?