Hi, Bashar.
Subforms are used primarily to display the many side of a one-to-many
relationship, such as Customers and Orders, but are also useful in dividing a
business function into manageable process "chunks", which sounds like what
you're trying to do. Then the user can concentrate on a single task
efficiently--you can put each task or series of tasks on a single tab.
I'm assuming that all of these forms have some common field such as
OrderNumber, or CustomerNumber, etc. that you can link them to the main form
by.
A Tab is simply another control; place it just as you would any other
control into the Detail section, however, start from a blank form. It looks
like a file folder on the Toolbox toolbar. Insert as many tabs as you like,
and set their Name (how to refer to the page in VBA) and Caption (what is
displayed on the tab to the user) properties.
On the first tab, place the desired fields for your main form. Be sure that
the linking field is part of the form's RecordSource, although you needn't
display it on the form.
Assuming the other forms are created, resize your edit window so that you
have access to the Database window, and drag the forms from the Forms tab and
drop them onto the appropriate tabbed page. If you have Wizards enabled,
Access will guess what the linking field is, if not, or if Access guesses
wrong, you can set it by changing the LinkMasterField and LinkChildField
properties of the subform.
What I often do is place all common information from the forms, or any
totals I wish to display in the form header or footer so that it is visible
from any tabbed page. This gives the form a consistent look, maximizes
access to information, and minimizes the number of editable fields per page.
Good luck. Hope that helps.
Sprinks