Hi, in the code
Dim cn as ADODB.Connection
strQuery = "UPDATE tblTaxonomia INNER JOIN tblCalendario ON tblTaxonomia.Id = tblCalendario.idEspecie SET tblCalendario.visible= No WHERE (" & condWhereNotLike & ");"
Set cn = CurrentProject.Connection
cn.Execute strQuery
i get the error '-2147467259 (80004005)' in running time: "The query is too complex".
It occurs when the string 'condWhereNotLike' is too long. The condWhereNotLike string is similar to this:
"tblTaxonomia.Id <> 500 And tblTaxonomia.Id <> 501 And tblTaxonomia.Id <> 502 And ..."
Any idea for going around that?
Thanks in advance.
Dim cn as ADODB.Connection
strQuery = "UPDATE tblTaxonomia INNER JOIN tblCalendario ON tblTaxonomia.Id = tblCalendario.idEspecie SET tblCalendario.visible= No WHERE (" & condWhereNotLike & ");"
Set cn = CurrentProject.Connection
cn.Execute strQuery
i get the error '-2147467259 (80004005)' in running time: "The query is too complex".
It occurs when the string 'condWhereNotLike' is too long. The condWhereNotLike string is similar to this:
"tblTaxonomia.Id <> 500 And tblTaxonomia.Id <> 501 And tblTaxonomia.Id <> 502 And ..."
Any idea for going around that?
Thanks in advance.