Go to portal Row does not have any way to tell which portal to go to. It goes to whatever portal last had the focus or the first portal if neither do. This change in focus is changing tabs. Before using go to portal Row, use go to object to put the focus on the desired portal. This requires that you give each portal an object name. To give a layout object an object name, enter layout mode, click it and then enter a name in the name box at the top of the Inspector's position tab.
So if you name the second portal "portal two". You can do this:
Go to Object ["Portal two"]
Go to portal row [last]
(Note, if this is to avoid scrolling the portal by hand in order to add a new portal record, many developers reverse the sort order on the portal so that newest portal rows are listed first and then add a button for adding new portal records. And this script does not need to use go to portal row at all. )
Sadly, it did not work. I named the portal tab as you described and created a script that first said go to object (Tab2) then go to last row. It still jumps back to the last row of tab no. 1. I can use your other suggestion because the person that uses this DB wants to be able to continually input the information and create new records without having to use the mouse. Any other approach?
Give the PORTAL a name, and let the script go to the PORTAL object, not to the TAB object.
As Phil described.
Thanks! That did the trick.