but that comes _after_ the recordset.
you are trying to use the session in the recordset...
so the session start command needs to come _before_ the code for the recordset.
if you add it at line 1 like i suggested, it will come before any possible place where the session can be referenced