Thank you jwindon for trying to help.
Well, this makes part of a relatively big system so it is not easy give a synthetic and concrete example. Parameters do not offer the flexibility I want (I want the users to select one among many predefined queries, then to be able to choose the operators for their criteria: IN, BETWEEN, = etc, and for the combinations between criteria AND, OR...). So the solution I took was to dynamically build the WHERE part of my queries based on criteria and operators chosen by the user in a form (very similar procedure to the one used in the Filter by Form process).
The user selects a predefined query, and what I do at the moment is that I change the WHERE part of SQL by the one that was programatically built.
This, because, I do not know any way to filter a query, although I know that when you are in design mode you can access a filter property that is said by the Help to be, once set, load at the same time than the query.
Is this property accessible programatically? How? I know how to do that for forms, reports but not for queries.
Advantage would be that I could easily have predefined queries with predefined criteria, that would be further filtered by users.
To obtain that result at the moment I must combine the predefined and user-defined criteria when building the were clause. It is simple in some cases (WHERE [predefined criteria] AND [user-defined criteria]) but in some other cases it can becom quite complex...
Hope this makes sense.
Alex
[This message has been edited by Alexandre (edited 08-30-2001).]