I am trying to use recordsets collection in the following code, but it doesn´t work. The database always reports an error - either "Type mismatch" or "need parameter".The code is Dim dbs as database,rec as recordset // set dbs = currentdb // set rec = dbs.openrecordset("tablename")