Thank a lot Ken.
But i figured out what the problem was. It was just defining the variable.
I just changed
rstEmployees as Recordset to rstEmployees to DAO.Recordset.
and it works perfect.
Ken, if you already made that file, i will take it :D . It will be a good learning tool for me. is it...