On Sat, 14 Apr 2012 09:44:28 +0100, k...@midnighthax.com said: > q = ((db.period.begindate<start)&(db.period.enddate>start)) > if db(query).count():
Argh. Typos. 'q' and 'query' should refer to the same thing, so change the second line to 'if db(q).count():' (that change needs to take place twice). -- "You can have everything in life you want if you help enough other people get what they want" - Zig Ziglar. Who did you help today?