what to do indeed. It all depends on the error, but you haven't told us what it is and I really don't want to guess which of 100 possibilities it may be. So, if we know what error you are getting we can be in a position to help. Better still, post your sql code as well.