Cant tell you exactly what wrong with your code. Of course this code seems to instruct files and programs belonging to Access itself. It is rather likely not the same to do this the files and exes belonging to Access97 and Access2000.
But you should also know that sometimes you are fooled into beleiving something is a conversion error when its actually just an old error. Chances are, maybe not in your case though, that erranous code is corrupt in access 97 also. Alltough Access 97 just hasnt been complaining. I had loads of errors that caused Accesss 2000 to stop in debugger mode all the time. Took me while to realize that it wasnt conversionerrors. The difference was that Access 97 didnt go into debugger mode when the error wasnt relevant to the currently performed task or pulled control.