On Fri, 2014-02-14 at 10:54 +0100, Roel Touwen [prive] wrote: > Sql = "relation = '" & Main.RobotCust & "' and robotID = " & > >>>> Main.RobotID & " and rectype = 'TS' and subID = '' and sequencer > = 0" After that line can you print (or debug) Sql. Don't know (because of email wrapping) but it looks kind of weird to me. B