I am glad to have found this post and this code, it seems to solve a similar problem that I have. By looking at your variable names and the task you were looking to solve, I am guessing you were using the Contact web database template and I am trying to solve the same problem you listed here...