C
chad
One of the this that doesn't work is the following simple
piece of code:
Set r = CurrentDb.OpenRecordset("SELECT DISTINCT Year
([DateOut]) AS Yr FROM tblAbsences ORDER BY Year
([DateOut]) DESC;")
The error that is generated is "Type mismatch" (Error code
13). It works fine in a database that was converted from
97 to 2000, but when I put this piece of code in a
database that was newly created, it flops.
Wayne: I know what you mean about having to specifiy DAO
or ADO before the Recordset, but I don't even get
IntelliSense after typing DAO.
piece of code:
Set r = CurrentDb.OpenRecordset("SELECT DISTINCT Year
([DateOut]) AS Yr FROM tblAbsences ORDER BY Year
([DateOut]) DESC;")
The error that is generated is "Type mismatch" (Error code
13). It works fine in a database that was converted from
97 to 2000, but when I put this piece of code in a
database that was newly created, it flops.
Wayne: I know what you mean about having to specifiy DAO
or ADO before the Recordset, but I don't even get
IntelliSense after typing DAO.
need to set a reference for DAO.-----Original Message-----
What functionality appears to be missing?
By default, Access 2000 uses ADO instead of DAO. You may
specify which of the two it is.Also, when you DIM an object, such as a recordset,