Hi, i am doing a filtering in a form creating a query as follows:
Set db = CurrentDb()
Set queryDef = db.QueryDefs("conFiltroGenerico")
queryDef.SQL = "SELECT tblTaxonomia.Id " & _
"FROM tblTaxonomia " & _
"WHERE (" & WhereCondition & ");"
DoCmd.ApplyFilter "conFiltroGenerico"
Sometimes no filter is applied, and when i open the query "conFiltroGenerico" i get the error The introduced expression exceeds 1.024 allowed characters (the WhereCondition string is too long).
I have also tried
DoCmd.ApplyFilter "", WhereCondition
with the same result: no filter is applied.
I have 293 records in the DB, and the final number of records is expected many more.
How could this error be avoided and the filter applied for any records number?
Thanks in advance.
Set db = CurrentDb()
Set queryDef = db.QueryDefs("conFiltroGenerico")
queryDef.SQL = "SELECT tblTaxonomia.Id " & _
"FROM tblTaxonomia " & _
"WHERE (" & WhereCondition & ");"
DoCmd.ApplyFilter "conFiltroGenerico"
Sometimes no filter is applied, and when i open the query "conFiltroGenerico" i get the error The introduced expression exceeds 1.024 allowed characters (the WhereCondition string is too long).
I have also tried
DoCmd.ApplyFilter "", WhereCondition
with the same result: no filter is applied.
I have 293 records in the DB, and the final number of records is expected many more.
How could this error be avoided and the filter applied for any records number?
Thanks in advance.