What would you like us to do? Personally I won't / can't do anything with the code you sent because I don't know what error you got nor do I know the environment in which you run that code. I sure wish my crystal ball ball was working.
If I ran that code I would get an error reporting unknown name Chapters.
So give us enough so that we could at least get started. If you got a trace back please copy and paste the entire traceback.
If you included an attachment it did not come through.
Bob Gailer