the query is working..
i tested it in access!


it has soemthing to do with cursor and declaration..