J
Jerome
Hi,
I'm looking for the best way to build a certain query.
Each record has a field containing several codes, like this for example:
V6,F14,VIP,Y2,Y6,Y7,
or V841,B,
or F12,S1,A,
etc
Now I'd like to be able to say: SELECT all the records that include "V*"
and "Y*" but not "B*".
I've tried this with several form fields and then using the values of
these form fields in the criteria field of the query to include or
exclude them, but that's not very elegant and gets too complicated and
too long at a certain point. Since I may need 8 or 10 include codes and
5 exclude codes for example ...
What would be very cool is if I could use one field like this as
selection criteria: +v +y -b
But I'm not sure if that's feasible? Or is there an other way to do this
whole stuff?
Any help is greatly appreciated,
Jerome
I'm looking for the best way to build a certain query.
Each record has a field containing several codes, like this for example:
V6,F14,VIP,Y2,Y6,Y7,
or V841,B,
or F12,S1,A,
etc
Now I'd like to be able to say: SELECT all the records that include "V*"
and "Y*" but not "B*".
I've tried this with several form fields and then using the values of
these form fields in the criteria field of the query to include or
exclude them, but that's not very elegant and gets too complicated and
too long at a certain point. Since I may need 8 or 10 include codes and
5 exclude codes for example ...
What would be very cool is if I could use one field like this as
selection criteria: +v +y -b
But I'm not sure if that's feasible? Or is there an other way to do this
whole stuff?
Any help is greatly appreciated,
Jerome