I am unsure as to what you are actually trying to do here, but will guess that the data from layout A is to be used as search criteria on layout B.
Set Variable [$Variable ; Value: LayoutATable::YourField ]
Go to Layout ["Layout B" (LayoutBTable) ]
Enter Find mode  ----> clear the pause check box
Set Field [LayoutBTable::YourField ; $Variable ]
Set Error Capture [on]
Perform Find 
For more on scripted finds, see: Scripted Find Examples
When Setting up Set Field, there are two Specify buttons that must be clicked. To get Set Field [Table::Field ; Expression], add set field to your script and click the first button (specify target field). Select Table::Field from the list of fields. Do not click the specify button next to the repetition box. Click OK to close this dialog box. Now click the lower specify button (calculated result) and create the expression to the right of the semicolon (;). Do not try to type in the semicolon.
That's awesome PhilModJunnk. Thanks. It worked perfectly. I would have never figured that out on my own. What this actually does is grab the territory ID number from a record layout and takes me to a subsummary report to show me all the potential clients for that given sales territory.