I had a chance to briefly test my code from post #2. It appears to work as you requested *if* you had nulls instead of -1... dare I suggest running an update query to change your -1's to nulls? Maybe a bad idea since I have no clue what this even is or what the rest of your app looks like... I'll bow out now though, Ajax is the vip!