Guy:
Well, nobody ever said that Access is perfect.
I just wrote a Select Case statement and Access kept telling me that I don't have an End Select which, most certainly, was there.
Turns out I had left off a Next to end a For loop. Why the compile error didn't pick up on that instead of identifying the Select Case as the problem is anybody's guess.
Access can defintely be quirky at times.
Glad you were able to fix the problem.
Larry De Laruelle
larry1de@yahoo.com