| 
 I looked at this in more detail - using AND's and OR's...
 I added brackets when using OR's so they take precedence over AND's. I added this to the recent code and it's available for download now.
 
 Thanks for pointing this out.
 
 btw - when using sql using or's and and's use
 (a=1 OR a=2) AND b=3 AND b=4
 
 GeorgeS
 
 |