So, what I'm getting at, is that your table is likely not constructed properly if there are more than one of the same classid in the table. Is that your primary Key (classid)? If so, classid should only have one of each of itself in the table and the query I showed you would work. I suspect that you either don't have a primary key, or if you do you are trying to tie tables together using the wrong data. That's why seeing your structure would help. Can you compact, zip and post it here? (393Kb or less to do so).