You didn't have "avsettfor_id" in your SELECT statement in your first recordset, so you couldn't use it to filter your second recordset. That is why it was always empty. The only change I made was to add avsettfor_id to the first recordset SELECT statement and the page seems to work now.