My '97 4 cylinder Toyota Camary automatic
Get a readout from the car's computer to see if there is a trouble code stored, which will give a good clue to the problem.
Camrys of this age often have a shift solenoid fail in the transmission, which will cause the symptoms you describe,
×