Hi friends,
I am a new person for Access VBA. I am testing a code an d got error message as
run-time error '13'
type mismatch
this is a simple code as
Private Sub testing_Click()
Dim db As Database, rec As Recordset
Dim aa As Integer
Set db = CurrentDb
Set rec = db.OpenRecordset("test", dbOpenTable)
aa = 0
Do
aa = aa + 1
Debug.Print rec![Name]
Loop Until aa > 2
End Sub
when i debuging it, it indicate error at line Set rec = db.OpenRecordset("test", dbOpenTable)
what is wrong?
Thanks for any help
Jimmy (
[email protected])