That should work just fine.
Maybe check your file against my file to see if you made any mistakes somewhere.
Maybe referenced the wrong TO somewhere.
To me your naming was a little confusing.
Here's how I would call everything:
TblResource - Your resource table
TblResourcePortal - Your second TO
LayResource - The layout for your Resources.
Otherwise you might start confusing things yourself.
Perhaps the fields in the portal are from the layout's table occurrence instead of the portal's.