I
Ian
I used this code to modify the criteria for a query:
dim qdf as dao.querydef
dim db as dao.database
set qdf=db.querydefs("MyQuery")
with qdf
.sql="Select * From tblMyTable Where MyID>3"
.close
end with
set qdf=nothing
set db=nothing
The problem is once the query is modified by VB code it
runs a lot slower than if I modified the query in design
mode without VB with the same ctiteria.
Any Ideas
dim qdf as dao.querydef
dim db as dao.database
set qdf=db.querydefs("MyQuery")
with qdf
.sql="Select * From tblMyTable Where MyID>3"
.close
end with
set qdf=nothing
set db=nothing
The problem is once the query is modified by VB code it
runs a lot slower than if I modified the query in design
mode without VB with the same ctiteria.
Any Ideas