i get an error of "object variable or with block variable not set"
Private Sub Form_Load()
Sn.Text = ""
Pw.Text = ""
End Sub
Private Sub Command1_Click()
db.Recordset.Filter = "[StudNum] LIKE %" + Sn.Text + "%" 'error comes here
If (Len(Sn.Text) < 8) And (IsNumeric(Sn.Text)) Then
babala = MsgBox("Student Number Should Contain 8 Numbers.", vbInformation + vbOKOnly, "Information")
ElseIf (Len(Sn.Text) > 8) And (IsNumeric(Sn.Text)) Then
babala = MsgBox("Student Number Should Only Contain 8 Numbers.", vbInformation + vbOKOnly, "Information")
ElseIf Not IsNumeric(Sn.Text) Then
babala = MsgBox("Student Number Should Only Contain Numbers.", vbInformation + vbOKOnly, "Information")
Else
Unload Me
MainPage.Show
End If
End Sub
This post has been edited by clovers25: 18 August 2009 - 07:49 PM

New Topic/Question
Reply




MultiQuote



|