Some issues there. Your project contains a reference to a library that I don't have so things don't run so well. Will try to answer your question instead. You can get at record field values with DLookup (although should not do so inside of a query) or create a recordset or use the form recordset clone.
Your query contains [Me]![codproj] as criteria. Queries cannot use Me as a reference - that is only for forms or reports to refer to themselves. Use the complete Forms syntax. I would have suggested something but can't tell which form to replace Me with. None of your forms seem to use the query as a recordsource, so that's a bit of a mystery at present.
EDIT - None of your forms seem to have codproj in them either, so it's a mystery why you're trying to use that field reference as query criteria.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.