I get wht's going wrong. Today I realize that the KKS variable include the quotation marks itself, that´s why the query_sql don't work. What I do is to get rid of the quotation marks with this:
KKS = Mid(KKS,2, Len(KKS -2)
Now it's working, thanks all for your help.