Did you add the code after you created the initial pages with the DB Create Pages function? Or did you just add a search function to a single page to start ?
I tried to use the Create pages function yesterday, and it started auto creating the search pages but then stalled and stopped and said i needed to create ether a recordset or a connection (can't remember) for the pages. That didn't make any sense because I started with a page with a connection (even though the create pages function doesn't use that page when it creates) .
Anyway, it just stalled out after creating one page.