>Hi Cetin..
>
>=ExecuteSql( - is nothing more than =SQLEXEC(gnc, ???) where gnC is the ODBC connection reference
I don't see how could you rely such a thing but anyway if that works for you then add missing ? prefix to doc_refr parameter (and correct the typo of missing quote).
PS: gnc sounds to be a global variable:(
Cetin