I solved the problem by using: if request.vars.tabel: tabel = request.vars.tabel session.tabel = tabel else: tabel = session.tabel
if request.vars.tt: tt = request.vars.tt session.tt = tt else: tt = session.tt But I stil do not know why this happened here and not in other places where I am using SQLFORM.grid. Regards Johann -- Because experiencing your loyal love is better than life itself, my lips will praise you. (Psalm 63:3)