You need an end for every start... in this case you had three ends and one start and no end for the show if recordset not empty.
I've fixed it on your site, but debugging hand coding is a bit beyond what we usually do on this forum. In the future I'll have to ask you to sign up for premier support to help you debug things like this.