I have a form on which the user can select any one or combination of criteria. Based on the combination entered, I would like to query my table. I am thinking this can be done in code by using if...then..else. However I am having difficulty writing an AND clause. Can someone tell me if this is the best method and if it is, then how do I write an if clause with and AND. e.g if ((month=Jan) and method=cash) and (payment>200)) then run query all or if ..... etc..... Any help appreciated.
Brian
Brian