Hi,
I am capable of sending parameters to my query with a global VBA function. However, the problem is that the comparison operator cannot be changed.
Everytime the query is executed, the operator has to be changed (the selection is performed in a form).
SELECT * From MyTable WHERE Column = 5;
SELECT * From MyTable WHERE Column <= 9;
SELECT * From MyTable WHERE Column > 10;
etc etc...
I've tried to change the query to something like this:
SELECT *
FROM MyTable
WHERE Column VBAFunction();
the return value of VBAFunction() is the comparison operator plus the value ("<= 9").
But I get a syntax error..
any ideas?
I am capable of sending parameters to my query with a global VBA function. However, the problem is that the comparison operator cannot be changed.
Everytime the query is executed, the operator has to be changed (the selection is performed in a form).
SELECT * From MyTable WHERE Column = 5;
SELECT * From MyTable WHERE Column <= 9;
SELECT * From MyTable WHERE Column > 10;
etc etc...
I've tried to change the query to something like this:
SELECT *
FROM MyTable
WHERE Column VBAFunction();
the return value of VBAFunction() is the comparison operator plus the value ("<= 9").
But I get a syntax error..
any ideas?