I have a procedure. In this there are a large number of SQL instructions. Via a case instruction he execute effectively one of these SQLs. The problem is, at a certain point I have so much SQLs that I get Error "3014" TO MUCH TABLES OPENED. Because at running the procedure he runs every SQL statement, also these which are not used. They give me the advice to make several procedures. I can't do this because these code belongs together.
Is it enough to close (rst.close) each recordset followed on these SQLs or can you close or sail round SQLs when they are not used ?
SQL119 "..."
Set mkqry119 = dbs.CreateQueryDef("", SQL119)
Set rstqry119 = mkqry119.OpenRecordset(dbOpenDynaset)
pat
Is it enough to close (rst.close) each recordset followed on these SQLs or can you close or sail round SQLs when they are not used ?
SQL119 "..."
Set mkqry119 = dbs.CreateQueryDef("", SQL119)
Set rstqry119 = mkqry119.OpenRecordset(dbOpenDynaset)
pat