
Which Access 2000 library did I forget?
Quote:
>I solved the problem by explicitly declaring
>Dim MyDB AS DAO.Database
>where befor I had
>Dim MyDB AS Database
>but I still don't know why this solved the problem.
Access2000 and 2002 default to using the ADO (ActiveX Data Objects)
model. Both ADO and DAO have recordset objects... but they are
DIFFERENT recordset objects. In particular, the ADO recordset is open
for editing immediately and therefore does not have or need an Edit
method.
It's best to explicitly choose which library you're using; in
addition, it would be wise to Dim rs As DAO.Recordset so you know what
you're getting.
John W. Vinson[MVP]
Come for live chats every Tuesday and Thursday
http://go.compuserve.com/msdevapps?loc=us&access=public