Start out by writing a simple program using a grid and then write a second simple one using separate text boxes (similar to what I did in the examples attached below Modify them so they use different SQL and send a form with the different SQL versions on them. The SQL you use should include different AND and OR combinations and definitely a condA and either condB or cond C. Try 5 different SQLs.