JDettman, you're on the right way but I have another error: first only 4 references were checked: VB for apps, Microsoft Access 9.0 Object Library (impossible to uncheck, it's in use), OLE Automation and Microsoft ActiveX DataObject (unchecked now, correct?). Then I wrote the line dim dbs As Database but I got the error. I'm not so keen with Access, but why can I write Dim rst As Recordset and not Dim dbs As Database??? HELP ME!!!