I'm having trouble with this:
Option Explicit
Dim hold1, hold2 As String
Public LoginSucceeded As Boolean
Private Sub cmdCancel_Click()
LoginSucceeded = False
Me.Hide
Welcome_Scrn.Show
End Sub
Private Sub cmdOK_Click()
With Adodc1.Recordset
hold1 = "[Username] like'" + txtUserName.Text + "'"
hold2 = "[Password] like'" + txtPassword.Text + "'"
If .EOF <> True Then
Me.Hide
Main.Show
Else
MsgBox "Invalid Password, try again!", , "Login"
txtPassword.SetFocus
End If
End With
End Sub
vb keeps giving me Run time error '91'
Object variable or With block variable not set.
What to doooo!!!! >.<