Y
Yoann Duriaud
Hello,
I wrote a couple of lines of code for a first project where everything went
fine.
Now I'm trying to do the same thing again and it doesn't work...
(I'm using Access XP)
Here is the sub I want to start with:
Sub f()
Dim r As Recordset
Set r = CurrentDb.OpenRecordset("ENUM_LIST")
End Sub
I get a "Type Mismatch" error.
If I define r as a Variant, then I don't get the error message but r does
not have all the properties of a recordset.
Also, when I try:
Dim a as QueryDef
I get a message telling me that the type does not exist.
Does anyone know what is wrong?
Yoann
I wrote a couple of lines of code for a first project where everything went
fine.
Now I'm trying to do the same thing again and it doesn't work...
(I'm using Access XP)
Here is the sub I want to start with:
Sub f()
Dim r As Recordset
Set r = CurrentDb.OpenRecordset("ENUM_LIST")
End Sub
I get a "Type Mismatch" error.
If I define r as a Variant, then I don't get the error message but r does
not have all the properties of a recordset.
Also, when I try:
Dim a as QueryDef
I get a message telling me that the type does not exist.
Does anyone know what is wrong?
Yoann