The auto tranny is totally controlled by the computer. When it shifts etc. So the fact that you can reset it most probably means that the trans is ok and that the computer is ok. The most probable cause of the problem is a sensor. There are a lot of sensors on this rig, everything from an rpm sensor to a fluid pressure sensor. The trick is which one is the problem.
If you can get access to a Nissan shop manual then you maybe able to start diagnosising the problem. The troubleshooting section is about 50 pages and frequently doubles back on itself.
It really is to complex to try to discribe within the forum. I have many pages already scanned in helping another person, but I do not think I have the section you need scanned. I do not know what to suggest, because the office scanner is broke and I already asked the bosses secretary to do it for Diesel Boy, I really do not have any favors left to ask for.
See if a local Nissan dealership will copy the pages for you. One of the local dealers here has done it from time to time for me. -thnkboutit-