hi I am trying this very basic code and it keeps generating an error saying datatype mismatch... I know I am just missing something very basic... I am using Access 2000
Private Sub Command0_Click()
Dim db As Database
Dim tbl1 As Recordset
Dim count As Integer
Set db = CurrentDb
Set tbl1 = db.OpenRecordset("tbl2Status"
tbl1.MoveFirst
count = 0
While Not tbl1.EOF
count = count + 1
Wend
MsgBox ("There are " & Str$(count) & "Records in the table"
End Sub
Private Sub Command0_Click()
Dim db As Database
Dim tbl1 As Recordset
Dim count As Integer
Set db = CurrentDb
Set tbl1 = db.OpenRecordset("tbl2Status"
tbl1.MoveFirst
count = 0
While Not tbl1.EOF
count = count + 1
Wend
MsgBox ("There are " & Str$(count) & "Records in the table"
End Sub