A: 

It would help if you would show the 'assert error' and maybe a stacktrace to see what call actually fails.

Also, note that even though you are checking for errors, you are not doing it correctly. Even if an error happens, you continue to exeute sqlite functions. That is a recipe for disaster.

St3fan
Hi St3fan, thanks for your reply. Is this (edited into question) what you mean?How should I check for errors properly? Sorry, I'm still pretty new to iPhone programming.Thanks for your help.
Mark McFarlane
I've since edited my code, but still have the problem. I've added a new question, how do I delete this one?thanks
Mark McFarlane
I would recommend looking at your other question (and maybe accepting an answer somewhere, you haven't accepted any yet)
KevinDTimm