Well, apart from the fact that there's no such thing as a "windows 97
machine", it's likely a References problem.
References point to specific files in specific locations. If a referenced
file is changed (eg.: a difference version), or it doesn't exist, or its
dependencies don't exist, you'll have a problem.
To correct a references problem, open any code module (or open the Immediate
Window, using Ctrl-G). Select Tools | References from the menu bar. Examine
all of the selected references.
If any of the selected references has "MISSING:" in front of them, unselect
them, and back out of the dialog. If you really do need the reference(s) you
just unselected (you can tell by doing a Compile All Modules), go back in
and reselect them.
If none of them are "MISSING:", select a new reference at random, back out
of the dialog, then go back in and unselect the reference you just added. If
that doesn't solve the problem, try to unselect all of the selected
references (Access probably won't let you unselect them all), back out of
the dialog, then go back in and reselect the references you just unselected.
(Write them down first, as they'll appear in a different order when you go
back in!)