Hi Marta and viettmann =)
I found this thread discussing the very issue:
[3DS MAX] Animating Gears
Code:
http://www.threedy.com/site/forum/showthread.php?t=32613
Apart from this I'm not much of help since most code makes my lil brain scream from terror :o
Hope this can be of some help =)