M
Mike Thomas
In Access 2000, we have a very compex sub query designed in the query
builder. This complex query merges with a 2nd simple query in a 3rd
query which becomes the recordset for a report.
We need to be able to change the Where clause of the complex query at least
3 different ways; but all of them very simple. I am trying to find a way to
do this in VB
I do not want to mess with the querydefs sql property of the complex query.
I am afraid of a bug or something else which would wreck the sql of the
query.
One possibility would be to keep the complex query without the WHERE clause.
I could then take the sql of the query, merge it with the WHERE clause,
create a new query, merge it with the 2nd query, etc. At least this would
leave the sql of the complex query intact if something went wrong.
Does anyone know of a simpler was to do this? (As I type this, I am slowly
talking myself into making a temp table holding the id's of the main table
in the complex query)
Many thanks
Mike Thomas
builder. This complex query merges with a 2nd simple query in a 3rd
query which becomes the recordset for a report.
We need to be able to change the Where clause of the complex query at least
3 different ways; but all of them very simple. I am trying to find a way to
do this in VB
I do not want to mess with the querydefs sql property of the complex query.
I am afraid of a bug or something else which would wreck the sql of the
query.
One possibility would be to keep the complex query without the WHERE clause.
I could then take the sql of the query, merge it with the WHERE clause,
create a new query, merge it with the 2nd query, etc. At least this would
leave the sql of the complex query intact if something went wrong.
Does anyone know of a simpler was to do this? (As I type this, I am slowly
talking myself into making a temp table holding the id's of the main table
in the complex query)
Many thanks
Mike Thomas