I think I may have lost the plot. Just a few years ago I'm sure I wrote
something similar to the following code:
dim rst as recordset
set rst = currentdb.openrecordset("mytable")
' blah blah blah
rst.close
I'm sure this should work now, but it doesn't.. When I run it I get a type
mismatch on the second line (set rst.. etc). Perhaps this might be a
missing reference? Currently selected references for the project are:
Visual Basic for Applications
Microsoft Access 10.0 Object library
OLE automation
Microsoft ActiveX Data Objects 2.1 Library
Microsoft DAO 3.6 object library
I think it's the last one that should enable the code to work (is currentdb
part of DAO object library?) Or am I missing a reference? Any ideas what
is going on? I'm sure the code should work.. !
Thanks in advance.
Matt