A tab control can be used for this, but it may not be the best option and is definitely not the simplest option.
In Manage | database | relationships, you'll find a number of "boxes" that point to different tables defined in your database. A layout can refer to one and only one of these boxes and thus to the table that it lists as its "data source table". Access to all other tables is via any relationships you define between that occurrence and other occurrences shown in this window. The relationship you define and the values of key fields in the current record on your layout will control what data, if any, is accessible from any such related tables.
To set this up with a single tab control, you'd need to first define a relationship that links your two tables and then either place the related fields on tab 2 or use a portal to list multiple related records on tab 2.
Due to these requirements, you may find it easier to set up a separate layout for each table. With some slight of hand, you can make each look like two (or more) tabs of the same tab control, but clicking tabs actually click buttons that change layouts. If I remember correctly, some of the starter solutions use this trick to simulate tab controls with a tabs to different tables...